Browse Source

Merge remote-tracking branch 'origin/dev' into dev

dist.1.2.0^2
pref_mail@163.com 4 months ago
parent
commit
60d724ff55
  1. 22
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java

22
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java

@ -2690,16 +2690,18 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
records.forEach(item -> { records.forEach(item -> {
Long scanId = item.getCarsLoadScanId(); Long scanId = item.getCarsLoadScanId();
List<TrunklineScanZeroDetailVO> list = scanZeroDetailVOMap.get(scanId); List<TrunklineScanZeroDetailVO> list = scanZeroDetailVOMap.get(scanId);
//把list中所有元素的goodsName用逗号拼起来 if(CollUtil.isNotEmpty(list)){
String loadingGoods = list.stream() //把list中所有元素的goodsName用逗号拼起来
.map(t-> t.getGoodsName()+"("+t.getLoadingNum()+")") String loadingGoods = list.stream()
.collect(Collectors.joining(",")); .map(t-> t.getGoodsName()+"("+t.getLoadingNum()+")")
.collect(Collectors.joining(","));
String unloadGoods = list.stream()
.map(t-> t.getGoodsName()+"("+t.getUnloadNum()+")") String unloadGoods = list.stream()
.collect(Collectors.joining(",")); .map(t-> t.getGoodsName()+"("+t.getUnloadNum()+")")
item.setLoadingGoods(loadingGoods); .collect(Collectors.joining(","));
item.setUnloadGoods(unloadGoods); item.setLoadingGoods(loadingGoods);
item.setUnloadGoods(unloadGoods);
}
}); });
} }
pageList.setRecords(records); pageList.setRecords(records);

Loading…
Cancel
Save