Explorar el Código

feat(采购合同):校验

Wangyafan hace 6 meses
padre
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()