Browse Source

商场PDA查询库存品调整

dev-pushdata-important
汤建军 1 year ago
parent
commit
76493c8168
  1. 5
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockListServiceImpl.java

5
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockListServiceImpl.java

@ -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);
}
}

Loading…
Cancel
Save