Commit 8f7b0b39 authored by zhengyi's avatar zhengyi

预警控货列表条件修改,放货待复核的也算已放货

parent a8d5bca7
...@@ -2900,8 +2900,8 @@ ...@@ -2900,8 +2900,8 @@
<!-- AND (o.type is null or o.type = '' or NOT FIND_IN_SET(2, o.type))--> <!-- AND (o.type is null or o.type = '' or NOT FIND_IN_SET(2, o.type))-->
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 = 3 and p.deleted = 0) &lt; 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) &lt; o.`sum_num`
AND ((select count(1) from `ecw_order_cargo_control_pick` p where p.order_id = o.order_id and p.status = 3 and p.deleted = 0) &lt;= 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) &lt;= 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