From 5028dd9aa4c35c33911067f925452e205965fd9e Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Thu, 14 Mar 2024 17:49:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=85=E4=BB=B6=E8=BD=AC=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/DistributionParcelListServiceImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -> {