Ver código fonte

fix(采购合同):bug修复

Wangyafan 6 meses atrás
pai
commit
4e487c0b5b

+ 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) {