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++) {