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 835cea3e..f1e96b11 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 @@ -112,10 +112,18 @@ a.not_tax_price settlementPriceNo, a.not_tax_count settlementSubtotalNo, a.tax_count settlementTotal, - a.not_tax_count settlementTotalNo + a.not_tax_count settlementTotalNo, + a.ord_ln ordLn, + c.code businessCode, + d.document_no docmentNo, + e.name warehouseName, + (SELECT SUM(storage_number) from jg_warehousing_storage_product where product_id = a.product_id and warehousing_storage_id = d.id) 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_storage d on c.code = d.business_order_no + LEFT JOIN jg_business_line e on e.id = d.warehouse_id WHERE a.business_order_id IN ( SELECT @@ -145,10 +153,18 @@ a.not_tax_price settlementPriceNo, a.not_tax_count settlementSubtotalNo, a.tax_count settlementTotal, - a.not_tax_count settlementTotalNo + a.not_tax_count settlementTotalNo, + a.ord_ln ordLn, + c.code businessCode, + d.document_no docmentNo, + e.name warehouseName, + (SELECT SUM(storage_number) from jg_warehousing_storage_product where product_id = a.product_id and warehousing_storage_id = d.id) 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_storage d on c.code = d.business_order_no + LEFT JOIN jg_business_line e on e.id = d.warehouse_id WHERE a.business_order_id IN ( SELECT @@ -178,10 +194,18 @@ a.not_tax_price settlementPriceNo, a.not_tax_count settlementSubtotalNo, a.tax_count settlementTotal, - a.not_tax_count settlementTotalNo + a.not_tax_count settlementTotalNo, + a.ord_ln ordLn, + c.code businessCode, + d.document_no docmentNo, + e.name warehouseName, + (SELECT SUM(storage_number) from jg_warehousing_storage_product where product_id = a.product_id and warehousing_storage_id = d.id) 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_storage d on c.code = d.business_order_no + LEFT JOIN jg_business_line e on e.id = d.warehouse_id WHERE a.business_order_id IN ( SELECT @@ -211,10 +235,18 @@ a.not_tax_price settlementPriceNo, a.not_tax_count settlementSubtotalNo, a.tax_count settlementTotal, - a.not_tax_count settlementTotalNo + a.not_tax_count settlementTotalNo, + a.ord_ln ordLn, + c.code businessCode, + d.document_no docmentNo, + e.name warehouseName, + (SELECT SUM(storage_number) from jg_warehousing_storage_product where product_id = a.product_id and warehousing_storage_id = d.id) 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_storage d on c.code = d.business_order_no + LEFT JOIN jg_business_line e on e.id = d.warehouse_id WHERE a.business_order_id IN ( SELECT @@ -244,10 +276,18 @@ a.not_tax_price settlementPriceNo, a.not_tax_count settlementSubtotalNo, a.tax_count settlementTotal, - a.not_tax_count settlementTotalNo + a.not_tax_count settlementTotalNo, + a.ord_ln ordLn, + c.code businessCode, + d.document_no docmentNo, + e.name warehouseName, + (SELECT SUM(outbound_number) from jg_warehousing_outbound_product where product_id = a.product_id and warehousing_outbound_id = d.id) 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_business_line e on e.id = d.warehouse_id WHERE a.business_order_id IN ( SELECT @@ -277,10 +317,18 @@ a.not_tax_price settlementPriceNo, a.not_tax_count settlementSubtotalNo, a.tax_count settlementTotal, - a.not_tax_count settlementTotalNo + a.not_tax_count settlementTotalNo, + a.ord_ln ordLn, + c.code businessCode, + d.document_no docmentNo, + e.name warehouseName, + (SELECT SUM(outbound_number) from jg_warehousing_outbound_product where product_id = a.product_id and warehousing_outbound_id = d.id) 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_business_line e on e.id = d.warehouse_id WHERE a.business_order_id IN ( SELECT @@ -310,10 +358,18 @@ a.not_tax_price settlementPriceNo, a.not_tax_count settlementSubtotalNo, a.tax_count settlementTotal, - a.not_tax_count settlementTotalNo + a.not_tax_count settlementTotalNo, + a.ord_ln ordLn, + c.code businessCode, + d.document_no docmentNo, + e.name warehouseName, + (SELECT SUM(outbound_number) from jg_warehousing_outbound_product where product_id = a.product_id and warehousing_outbound_id = d.id) 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_business_line e on e.id = d.warehouse_id WHERE a.business_order_id IN ( SELECT @@ -343,10 +399,18 @@ a.not_tax_price settlementPriceNo, a.not_tax_count settlementSubtotalNo, a.tax_count settlementTotal, - a.not_tax_count settlementTotalNo + a.not_tax_count settlementTotalNo, + a.ord_ln ordLn, + c.code businessCode, + d.document_no docmentNo, + e.name warehouseName, + (SELECT SUM(outbound_number) from jg_warehousing_outbound_product where product_id = a.product_id and warehousing_outbound_id = d.id) 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_business_line e on e.id = d.warehouse_id WHERE a.business_order_id IN ( SELECT diff --git a/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/impl/CwsettlementServiceImpl.java b/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/impl/CwsettlementServiceImpl.java index b0a7ef72..9313c98b 100644 --- a/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/impl/CwsettlementServiceImpl.java +++ b/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/impl/CwsettlementServiceImpl.java @@ -1030,11 +1030,11 @@ public class CwsettlementServiceImpl extends ServiceImpl