소스 검색

fix(采购合同):bug修复

Wangyafan 6 달 전
부모
커밋
4e487c0b5b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/main/java/com/inkasso/factoring/purchManagement/service/impl/CPurchContractManagementServiceImpl.java

+ 2 - 1
src/main/java/com/inkasso/factoring/purchManagement/service/impl/CPurchContractManagementServiceImpl.java

@@ -246,7 +246,8 @@ public class CPurchContractManagementServiceImpl extends ServiceImpl<CPurchContr
             purchContractVo.setBasicInfo(salesContractBasicVo);
 
             //获取最新的采购合同信息
-            CPurchContractBasicInfo purch = purchContractBasicInfoService.getById(purchContractManagement.getId());
+            CPurchContractBasicInfo purch = purchContractBasicInfoService
+                    .lambdaQuery().eq(CPurchContractBasicInfo::getPurchContractManagementId,purchContractManagement.getId()).one();
 
             //根据采购合同获取其他信息
             if (purch != null && purch.getId() != null) {