From dcaf1e482d0189dbe185dc3d2fbc12c7f51d4ed1 Mon Sep 17 00:00:00 2001 From: gaoqr <13665037151@163.com> Date: Fri, 29 May 2026 20:34:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E6=8E=92=E5=8D=95=20?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E6=9A=82=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/executor/service/plan/PlanServiceImpl.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/service/plan/PlanServiceImpl.java b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/service/plan/PlanServiceImpl.java index 309a31136..8b8445a3a 100644 --- a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/service/plan/PlanServiceImpl.java +++ b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/service/plan/PlanServiceImpl.java @@ -1362,17 +1362,19 @@ public class PlanServiceImpl implements PlanService { for (SavePlanPlateList.GoodsItemList item : items) { // 将 material 和 thickness 组合成键 - String key = item.getMaterial() + "|" + item.getThickness(); +// String key = item.getMaterial() + "|" + item.getThickness(); // 如果键不存在,初始化一个新的列表 - groupedItems.putIfAbsent(key, new ArrayList<>()); + groupedItems.putIfAbsent(item.getId().toString(), new ArrayList<>() {{ + add(item.getId()); + }}); // 添加当前项的 id 到对应的分组 - groupedItems.get(key).add(item.getId()); +// groupedItems.get(key).add(item.getId()); } // 只留混单的材质 - groupedItems.entrySet().removeIf(entry -> entry.getValue().size() > 1); +// groupedItems.entrySet().removeIf(entry -> entry.getValue().size() > 1); return groupedItems; }