订单统计 Bug

This commit is contained in:
2025-01-06 10:16:38 +08:00
parent f45341c550
commit c407f21a0b
2 changed files with 6 additions and 5 deletions

View File

@@ -205,7 +205,8 @@
</select>
<select id="selectOrdersMoney" resultType="Double">
select ifnull(sum(pay_money),0.00) from orders where 1=1
select sum(pay_money) from orders
where 1=1
<if test="sysUserId!=null">
and sys_user_id=#{sysUserId}
</if>