diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java index d57fe1d2f..87d9685ed 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java @@ -455,8 +455,10 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl listString = new HashSet<>(); log.info("###############包件信息>>>>>>>>>>>>,{}",list1); - list1.stream().collect(Collectors.groupingBy(DistributionParcelListEntity::getMaterialId)) - .forEach((k, v) -> { + Map> listMap = list1.stream().collect(Collectors.groupingBy(DistributionParcelListEntity::getMaterialId)); + log.info("###############包件信息listMap>>>>>>>>>>>>,{}",listMap); + + listMap.forEach((k, v) -> { int sum = v.stream().mapToInt(DistributionParcelListEntity::getQuantity).sum(); List packageIds = new ArrayList<>(); v.stream().forEach(i -> {