Commit e05c5dbf authored by zhengyi's avatar zhengyi

预警控货订单查询条件修正

parent 60bbe201
...@@ -2910,7 +2910,7 @@ ...@@ -2910,7 +2910,7 @@
AND o.`is_cargo_control` = 1 AND o.`is_cargo_control` = 1
AND o.unload_time is not null AND o.unload_time is not null
AND (select IFNULL(sum(p.pick_num), 0) from `ecw_order_cargo_control_pick` p where p.order_id = o.order_id and p.status in(1,3) and p.deleted = 0) < o.`sum_num` AND (select IFNULL(sum(p.pick_num), 0) from `ecw_order_cargo_control_pick` p where p.order_id = o.order_id and p.status in(1,3) and p.deleted = 0) < o.`sum_num`
AND ((select count(1) from `ecw_order_cargo_control_pick` p where p.order_id = o.order_id and p.status in(1,3) and p.deleted = 0) <= 3 or AND ((select count(1) from `ecw_order_cargo_control_pick` p where p.order_id = o.order_id and p.status in(1,3) and p.deleted = 0) >= 3 or
DATE_ADD(o.unload_time, INTERVAL ( DATE_ADD(o.unload_time, INTERVAL (
SELECT SELECT
IFNULL(ew_dest.rent_free_days, 0) IFNULL(ew_dest.rent_free_days, 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment