|
|
@ -1202,6 +1202,22 @@ public class BmsSupplierController { |
|
|
|
return supplier; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
bmsSupplierService.updateBatchById(updateBmsSuppliers); |
|
|
|
|
|
|
|
List<String> updateBmsSuppliersUserNullById = updateList.stream() |
|
|
|
.filter(a->!StringUtils.hasText(a.getMainHeadCode())) |
|
|
|
.map(a-> codeToSupplierId.get(a.getCustomerCode())).collect(Collectors.toList()); |
|
|
|
|
|
|
|
if(updateBmsSuppliersUserNullById.size()>0){ |
|
|
|
bmsSupplierService.updateBmsSuppliersUserNullById(updateBmsSuppliersUserNullById); |
|
|
|
} |
|
|
|
|
|
|
|
List<String> updateBmsSuppliersOtherUserNullById = updateList.stream() |
|
|
|
.filter(a->!StringUtils.hasText(a.getMinorHeadCodes())) |
|
|
|
.map(a-> codeToSupplierId.get(a.getCustomerCode())).collect(Collectors.toList()); |
|
|
|
|
|
|
|
if(updateBmsSuppliersOtherUserNullById.size()>0){ |
|
|
|
bmsSupplierService.updateBmsSuppliersOtherUserNullById(updateBmsSuppliersOtherUserNullById); |
|
|
|
} |
|
|
|
} |
|
|
|
/** ----------------------------------------------------------------------------------- */ |
|
|
|
/** ------------------------------- 删除数据 ------------------------------------------------ */ |
|
|
|