订单统计 Bug2
This commit is contained in:
@@ -233,16 +233,16 @@
|
||||
<select id="selectFenXiaoMoney" resultType="Double">
|
||||
select
|
||||
<if test="type==1">
|
||||
ifnull(sum(one_money),0.00)
|
||||
sum(ifnull(one_money,0.00))
|
||||
</if>
|
||||
<if test="type==2">
|
||||
ifnull(sum(two_money),0.00)
|
||||
sum(ifnull(two_money,0.00))
|
||||
</if>
|
||||
<if test="type==3">
|
||||
ifnull(sum(qd_money),0.00)
|
||||
sum(ifnull(qd_money,0.00))
|
||||
</if>
|
||||
<if test="type==4">
|
||||
ifnull(sum(one_money),0.00)+ifnull(sum(two_money),0.00)+ifnull(sum(qd_money),0.00)
|
||||
sum(ifnull(one_money,0.00))+sum(ifnull(two_money,0.00))+sum(ifnull(qd_money,0.00))
|
||||
</if>
|
||||
from orders
|
||||
where status=1
|
||||
|
||||
Reference in New Issue
Block a user