Browse Source

feat(采购合同):校验

Wangyafan 6 months ago
parent
commit
06d1e8c42a

+ 1 - 1
src/main/java/com/sunxung/factoring/service/purchcontractmanagement/impl/PurchContractServiceImpl.java

@@ -174,7 +174,7 @@ public class PurchContractServiceImpl extends ServiceImpl<PurchContractMapper, P
         }
 
         SalesContractBasicVo basicInfoVo = purchContractVo.getBasicInfo();
-        if (basicInfoVo != null) {
+        if (basicInfoVo == null) {
             throw new ValidatorException(CodeUtil.FAIL, "基础信息不能为空!");
         }
         PurchContractManagement oldPurchContractManagement = lambdaQuery()