zhangyuewww 3 jaren geleden
bovenliggende
commit
7842cdf569

+ 2 - 2
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/ContractManagementInfoServiceImpl.java

@@ -115,8 +115,8 @@ public class ContractManagementInfoServiceImpl extends ServiceImpl<ContractManag
                 throw new YException(YExceptionEnum.CONTRACT_NO_ERROR);
             }
         }
-        //自运采购合同添加临时仓库
-        if (NumberConstant.CONSTANT2.equals(contractManagementInfo.getContractType()) && NumberConstant.CONSTANT1.equals(contractManagementInfo.getDeliverType())) {
+        //现货自运采购合同添加临时仓库
+        if (NumberConstant.CONSTANT1.equals(contractManagementInfo.getGoodsType())&&NumberConstant.CONSTANT2.equals(contractManagementInfo.getContractType()) && NumberConstant.CONSTANT1.equals(contractManagementInfo.getDeliverType())) {
             WarehouseBaseInfo warehouseBaseInfo = new WarehouseBaseInfo();
             warehouseBaseInfo.setId(IdGenerator.generateUUID());
             warehouseBaseInfo.setWarehouseName(contractManagementInfo.getContractNo());