Browse Source

供应商问题处理

yzc 10 months ago
parent
commit
afbc89271a

+ 1 - 1
hx-supply/src/main/java/com/fjhx/supply/service/supplier/impl/SupplierInfoServiceImpl.java

@@ -182,7 +182,7 @@ public class SupplierInfoServiceImpl extends ServiceImpl<SupplierInfoMapper, Sup
         ObsFileUtil.editFile(supplierInfoDto.getLicenseFileList(), supplierInfoDto.getId(), 10);
 
         //其他联系人
-        List<SupplierContact> contactList = supplierInfoDto.getContactList();
+        List<SupplierContact> contactList = ObjectUtil.defaultIfNull(supplierInfoDto.getContactList(), new ArrayList<>());
         contactList.forEach(item -> item.setSupplierId(supplierInfoDto.getId()));
         supplierContactService.editLinked(contactList, SupplierContact::getSupplierId, supplierInfoDto.getId());
     }