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