From 0b8a5cdc05f815c0a3623289da2782bbbbd0b14e Mon Sep 17 00:00:00 2001 From: Joshi <3040996759@qq.com> Date: Thu, 14 Aug 2025 16:57:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(wms):=20=E4=BF=AE=E6=AD=A3=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=8E=92=E5=BA=8F=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将任务排序字段从 "sequare" 修改为 "sequence",以解决依赖关系构建错误的问题 - 此修改涉及三个不同的方法,确保所有相关逻辑使用正确的排序字段 --- .../main/java/com/klp/service/impl/WmsBatchServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/klp-wms/src/main/java/com/klp/service/impl/WmsBatchServiceImpl.java b/klp-wms/src/main/java/com/klp/service/impl/WmsBatchServiceImpl.java index 0c2822ff..5caa9fa0 100644 --- a/klp-wms/src/main/java/com/klp/service/impl/WmsBatchServiceImpl.java +++ b/klp-wms/src/main/java/com/klp/service/impl/WmsBatchServiceImpl.java @@ -178,7 +178,7 @@ public class WmsBatchServiceImpl implements IWmsBatchService { // 遍历每一行,记录每个进程在每一行的执行顺序 for (List> row : rows) { // 按sequare排序 - row.sort(Comparator.comparingInt(task -> Integer.parseInt(task.get("sequare").toString()))); + row.sort(Comparator.comparingInt(task -> Integer.parseInt(task.get("sequence").toString()))); // 记录每个进程的执行顺序 for (int i = 0; i < row.size(); i++) { @@ -213,7 +213,7 @@ public class WmsBatchServiceImpl implements IWmsBatchService { // 遍历每一行,记录进程间的依赖关系 for (List> row : rows) { // 按sequare排序 - row.sort(Comparator.comparingInt(task -> Integer.parseInt(task.get("sequare").toString()))); + row.sort(Comparator.comparingInt(task -> Integer.parseInt(task.get("sequence").toString()))); // 构建依赖关系 for (int i = 0; i < row.size() - 1; i++) { @@ -238,7 +238,7 @@ public class WmsBatchServiceImpl implements IWmsBatchService { // 遍历每一行,记录任务间的依赖关系 for (List> row : rows) { // 按sequare排序 - row.sort(Comparator.comparingInt(task -> Integer.parseInt(task.get("sequare").toString()))); + row.sort(Comparator.comparingInt(task -> Integer.parseInt(task.get("sequence").toString()))); // 构建依赖关系 for (int i = 0; i < row.size() - 1; i++) {