mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 21:32:07 +08:00
创建排单 逻辑暂处理
This commit is contained in:
+6
-4
@@ -1362,17 +1362,19 @@ public class PlanServiceImpl implements PlanService {
|
|||||||
|
|
||||||
for (SavePlanPlateList.GoodsItemList item : items) {
|
for (SavePlanPlateList.GoodsItemList item : items) {
|
||||||
// 将 material 和 thickness 组合成键
|
// 将 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 到对应的分组
|
// 添加当前项的 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;
|
return groupedItems;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user