Commit 170a7fba by huluobin

调拨在途 入库大于发货 取0

parent 15936fda
...@@ -163,6 +163,8 @@ public class DcBaseCostFirst { ...@@ -163,6 +163,8 @@ public class DcBaseCostFirst {
private Optional<DcBaseSku> dcBaseSku; private Optional<DcBaseSku> dcBaseSku;
private BigDecimal skuWeightRatio;
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_cost_first * This method corresponds to the database table dc_base_cost_first
......
...@@ -680,7 +680,7 @@ ...@@ -680,7 +680,7 @@
SELECT t1.targetwareno as warehouse_code, SELECT t1.targetwareno as warehouse_code,
t2.sku as bailun_sku, t2.sku as bailun_sku,
t1.transporttype as transport_type, t1.transporttype as transport_type,
t2.deliverycount - t2.storagecount as `count`, if(t2.deliverycount - t2.storagecount &lt; 0 ,0,t2.deliverycount - t2.storagecount) as `count`,
0 as countplan 0 as countplan
FROM dc_base_transfer_info t1 FROM dc_base_transfer_info t1
LEFT JOIN dc_base_transfer_info_skus t2 on t1.dataid = t2.dataid LEFT JOIN dc_base_transfer_info_skus t2 on t1.dataid = t2.dataid
......
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