Commit e2a72547 by wutong

修改调拨单流水在途与调拨计划单在途汇总错误的问题,UNION改为UNION ALL

parent c50b1b7e
...@@ -638,7 +638,7 @@ ...@@ -638,7 +638,7 @@
ON tb5.bailun_sku = tb4.bailun_sku ON tb5.bailun_sku = tb4.bailun_sku
AND tb5.warehouse_code = tb4.warehouse_code AND tb5.warehouse_code = tb4.warehouse_code
WHERE (tb5.count - IFNULL(tb4.count, 0)) > 0 WHERE (tb5.count - IFNULL(tb4.count, 0)) > 0
union UNION ALL
select bailun_sku, warehouse_code, sum(count) AS count select bailun_sku, warehouse_code, sum(count) AS count
from dc_base_transfer_plan from dc_base_transfer_plan
where status = 1 where status = 1
......
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