Parcourir la source

1.合同编辑

wuhp il y a 1 an
Parent
commit
5452efd341

+ 2 - 6
src/main/java/com/ydtech/modules/fnc/service/contract/impl/contractServiceImpl.java

@@ -125,13 +125,9 @@ public class contractServiceImpl extends ServiceImpl<ContractMapper, ContractEnt
             }
 
             baseMapper.updateById(contractEntity);
-            if (contractDto.getSupplierIdList() != null && !contractDto.getSupplierIdList().isEmpty()) {
-                contractSupplierService.saveAndUpdate(contractDto.getSupplierIdList(), contractEntity.getId());
-            }
+            contractSupplierService.saveAndUpdate(contractDto.getSupplierIdList(), contractEntity.getId());
 
-            if (contractDto.getFilePathIdList() != null) {
-                contractFileService.saveAndUpdate(contractDto.getFilePathIdList(), contractEntity.getId());
-            }
+            contractFileService.saveAndUpdate(contractDto.getFilePathIdList(), contractEntity.getId());
         }
     }