|
|
|
@ -667,10 +667,11 @@ public class DistributionStockListServiceImpl extends BaseServiceImpl<Distributi
|
|
|
|
|
//存在有无库位无托盘的库存品
|
|
|
|
|
//对无库位无托盘进行汇总
|
|
|
|
|
int sum = distributionMerchantStockListVOS.stream().filter(m -> m.getAllocation() == null && m.getTrayName() == null).mapToInt(DistributionMerchantStockListVO::getNum).sum(); |
|
|
|
|
List<DistributionMerchantStockListVO> collected = distributionMerchantStockListVOS.stream().filter(m -> m.getAllocation() == null && m.getTrayName() == null).collect(Collectors.toList()); |
|
|
|
|
DistributionMerchantStockListVO distributionMerchantStockListVO = new DistributionMerchantStockListVO(); |
|
|
|
|
distributionMerchantStockListVO.setNum(sum); |
|
|
|
|
distributionMerchantStockListVOS = collected; |
|
|
|
|
distributionMerchantStockListVOS = distributionMerchantStockListVOS.stream().filter(m -> m.getAllocation() != null || m.getTrayName() != null).collect(Collectors.toList()); |
|
|
|
|
distributionMerchantStockListVOS.add(distributionMerchantStockListVO); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|