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