Commit 157ab200 authored by zhengyi's avatar zhengyi

订单提货记录时间统计业务修正

parent 72a95862
......@@ -7563,14 +7563,14 @@
SUM(IFNULL(op.pick_num, 0)) as total_num
from ecw_order_pickup op
left join ecw_order o
ON op.order_id = o.order_no and op.deleted = 0
ON op.order_id = o.order_no
left join ecw_order_departure de on de.order_id = o.order_id
left join ecw_order_objective ob on ob.order_id = o.order_id
left join ecw_order_consignor nor on nor.order_id = o.order_id
left join ecw_order_consignee nee on nee.order_id = o.order_id
left join ecw_channel channel on channel.channel_id = o.channel_id
where o.deleted = 0 and o.in_warehouse_state != 211 and o.in_warehouse_state != 208 and o.status != 10 and
wi.deleted = 0
op.deleted = 0
<if test="query.deptId != null ">
AND o.dept_id = #{query.deptId}
</if>
......
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