增加订单查询时,逻辑删除的标记

This commit is contained in:
2025-08-23 00:27:39 +08:00
parent 94577c2f34
commit 876e6e33d9
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
COUNT(CASE WHEN order_status = 'WAIT_RETURN' THEN 1 END) as pending_return_count,
COUNT(CASE WHEN order_status = 'RENT_OVERDUE' THEN 1 END) as overdue_count
FROM zc_order_main
WHERE store_id = #{storeId}
WHERE store_id = #{storeId} and del_flag = '0'
GROUP BY store_id
</select>
@ -38,6 +38,7 @@
LEFT JOIN zc_car c on o.vehicle_id = c.id
<where>
o.del_flag = '0'
<if test="customerId != null">
and o.customer_id = #{customerId}
</if>