diff --git a/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/WarehousingOutboundProductMapper.xml b/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/WarehousingOutboundProductMapper.xml index 5a5eccdc..e23e95ee 100644 --- a/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/WarehousingOutboundProductMapper.xml +++ b/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/WarehousingOutboundProductMapper.xml @@ -54,7 +54,7 @@ LEFT JOIN jg_subject_basic f ON e.first_subject_basic_id = f.id LEFT JOIN jg_contract g ON e.contract_id = g.id WHERE - a.id = #{id} + a.document_no = #{id} AND c.business_type = '1' AND a.f_delete_mark IS NULL 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 aa0af84c..817b957d 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 @@ -1154,7 +1154,7 @@ public class CwsettlementServiceImpl extends ServiceImpl warehousingOutboundProductList = warehousingOutboundProductService.queryOutboundProductPurchase(model.getAccountId()); + List warehousingOutboundProductList = warehousingOutboundProductService.queryOutboundProductPurchase(cwaccountstorageEntity.getDocumentNo()); for (WarehousingOutboundProductEntity warehousingOutboundProductEntity : warehousingOutboundProductList) { settlementRelationSaleEntity.setPurchaseCode(warehousingOutboundProductEntity.getCode()); //采购订单 settlementRelationSaleEntity.setContract(warehousingOutboundProductEntity.getContractName()); //采购合同编号 @@ -1183,9 +1183,12 @@ public class CwsettlementServiceImpl extends ServiceImpl