订单统计 Bug2

This commit is contained in:
2025-01-06 10:26:16 +08:00
parent c407f21a0b
commit d43e03d149

View File

@@ -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