模型空格优化

This commit is contained in:
dengjun 2024-03-01 14:24:42 +08:00
parent 25f0c98516
commit 9bf5504fbf
1 changed files with 3 additions and 0 deletions

View File

@ -2233,6 +2233,9 @@ public class ExportInHandler implements BaseHandler {
return ResultUtil.failure(ErrorType.PARAMS_ERROR.id(), "导入失败", errorDataList);
}
// 模型去空格处理
validData.stream().forEach(item -> item.setModels(StringUtils.trim(item.getModels())));
// 首先按对船名般次提单进行分组
Map<String, List<ExportInExcel>> collect = validData.stream()
.collect(Collectors.groupingBy(item -> StringUtils.joinWith("#$#", item.getShipName(), item.getVoyage(), item.getBillNo(), item.getBrand(), item.getModels()), Collectors.toList()));