diff --git a/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/CwaccountvoucherMapper.xml b/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/CwaccountvoucherMapper.xml index 365376c0..971b041f 100644 --- a/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/CwaccountvoucherMapper.xml +++ b/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/CwaccountvoucherMapper.xml @@ -117,7 +117,7 @@ c.code businessCode, d.document_no docmentNo, f.cargo_name warehouseName, - (SELECT SUM(storage_number) from jg_warehousing_storage_product where product_id = a.product_id and warehousing_storage_id = d.id) storageNumber + (SELECT SUM(storage_number) from jg_warehousing_storage_product where product_id = a.product_id and warehousing_storage_id = d.id and ord_ln = a.ord_ln) storageNumber FROM jg_business_order_product_relational a LEFT JOIN jg_product b ON a.product_id = b.id @@ -243,7 +243,7 @@ c.code businessCode, d.document_no docmentNo, f.cargo_name warehouseName, - (SELECT SUM(storage_number) from jg_warehousing_storage_product where product_id = a.product_id and warehousing_storage_id = d.id) storageNumber + (SELECT SUM(storage_number) from jg_warehousing_storage_product where product_id = a.product_id and warehousing_storage_id = d.id and ord_ln = a.ord_ln) storageNumber FROM jg_business_order_product_relational a LEFT JOIN jg_product b ON a.product_id = b.id @@ -284,15 +284,12 @@ a.ord_ln ordLn, c.code businessCode, d.document_no docmentNo, - f.cargo_name warehouseName, - (SELECT SUM(outbound_number) from jg_warehousing_outbound_product where product_id = a.product_id and warehousing_outbound_id = d.id) storageNumber + (SELECT SUM(outbound_number) from jg_warehousing_outbound_product where product_id = a.product_id and warehousing_outbound_id = d.id and ord_ln = a.ord_ln) storageNumber FROM jg_business_order_product_relational a LEFT JOIN jg_product b ON a.product_id = b.id LEFT JOIN jg_business_order c on a.business_order_id = c.id LEFT JOIN jg_warehousing_outbound d on c.code = d.business_order_no - LEFT JOIN jg_warehousing_outbound_product e on (e.warehousing_outbound_id = d.id and e.product_id = a.product_id and e.ord_ln = a.ord_ln) - LEFT JOIN jg_business_cargo f on e.outbound_area_id = f.id WHERE a.business_order_id IN ( SELECT @@ -369,14 +366,12 @@ c.code businessCode, d.document_no docmentNo, f.cargo_name warehouseName, - (SELECT SUM(outbound_number) from jg_warehousing_outbound_product where product_id = a.product_id and warehousing_outbound_id = d.id) storageNumber + (SELECT SUM(outbound_number) from jg_warehousing_outbound_product where product_id = a.product_id and warehousing_outbound_id = d.id and ord_ln = a.ord_ln) storageNumber FROM jg_business_order_product_relational a LEFT JOIN jg_product b ON a.product_id = b.id LEFT JOIN jg_business_order c on a.business_order_id = c.id LEFT JOIN jg_warehousing_outbound d on c.code = d.business_order_no - LEFT JOIN jg_warehousing_outbound_product e on (e.warehousing_outbound_id = d.id and e.product_id = a.product_id and e.ord_ln = a.ord_ln) - LEFT JOIN jg_business_cargo f on e.outbound_area_id = f.id WHERE a.business_order_id IN ( SELECT @@ -411,7 +406,7 @@ c.code businessCode, d.document_no docmentNo, f.cargo_name warehouseName, - (SELECT SUM(outbound_number) from jg_warehousing_outbound_product where product_id = a.product_id and warehousing_outbound_id = d.id) storageNumber + (SELECT SUM(outbound_number) from jg_warehousing_outbound_product where product_id = a.product_id and warehousing_outbound_id = d.id and ord_ln = a.ord_ln) storageNumber FROM jg_business_order_product_relational a LEFT JOIN jg_product b ON a.product_id = b.id diff --git a/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/CwsettlementMapper.xml b/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/CwsettlementMapper.xml index 6d6d4530..65b42f58 100644 --- a/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/CwsettlementMapper.xml +++ b/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/CwsettlementMapper.xml @@ -9,7 +9,6 @@ - @@ -34,11 +33,14 @@ +