|
@@ -131,8 +131,11 @@ public class SupplierInfoServiceImpl extends ServiceImpl<SupplierInfoMapper, Sup
|
|
|
//供应商营业执照附件
|
|
|
ObsFileUtil.saveFile(supplierInfoDto.getLicenseFileList(), supplierInfoDto.getId(), 10);
|
|
|
|
|
|
+
|
|
|
//其他联系人
|
|
|
- supplierContactService.editLinked(supplierInfoDto.getContactList(), SupplierContact::getSupplierId, supplierInfoDto.getId());
|
|
|
+ List<SupplierContact> contactList = supplierInfoDto.getContactList();
|
|
|
+ contactList.forEach(item -> item.setSupplierId(supplierInfoDto.getId()));
|
|
|
+ supplierContactService.editLinked(contactList, SupplierContact::getSupplierId, supplierInfoDto.getId());
|
|
|
}
|
|
|
|
|
|
@DSTransactional
|
|
@@ -153,7 +156,9 @@ public class SupplierInfoServiceImpl extends ServiceImpl<SupplierInfoMapper, Sup
|
|
|
ObsFileUtil.editFile(supplierInfoDto.getLicenseFileList(), supplierInfoDto.getId(), 10);
|
|
|
|
|
|
//其他联系人
|
|
|
- supplierContactService.editLinked(supplierInfoDto.getContactList(), SupplierContact::getSupplierId, supplierInfoDto.getId());
|
|
|
+ List<SupplierContact> contactList = supplierInfoDto.getContactList();
|
|
|
+ contactList.forEach(item -> item.setSupplierId(supplierInfoDto.getId()));
|
|
|
+ supplierContactService.editLinked(contactList, SupplierContact::getSupplierId, supplierInfoDto.getId());
|
|
|
}
|
|
|
|
|
|
@DSTransactional
|