订单统计问题修复

This commit is contained in:
donqi 2023-05-17 21:50:03 +08:00
parent f401676e02
commit 6d431cf991
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@
SELECT COUNT(*) FROM order_master om SELECT COUNT(*) FROM order_master om
<where> <where>
<if test="isMonitoredOrder"> <if test="isMonitoredOrder">
AND (om.all_self_assigned = 0 or om.all_self_assigned is not null) AND om.order_status in (1,2,3,4) AND (om.all_self_assigned = 0 or om.all_self_assigned is null) AND om.order_status in (1,2,3,4)
</if> </if>
<if test="deptId != null and deptId != 0"> <if test="deptId != null and deptId != 0">
AND om.dept_id = #{deptId} AND om.dept_id = #{deptId}