增加订单查询时,逻辑删除的标记
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user