소스 검색

供应商问题处理

yzc 1 년 전
부모
커밋
afbc89271a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      hx-supply/src/main/java/com/fjhx/supply/service/supplier/impl/SupplierInfoServiceImpl.java

+ 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());
     }