From 6d33b00ae7035a1ebfa0a00c18100675fc5c56c0 Mon Sep 17 00:00:00 2001 From: Joshi <3040996759@qq.com> Date: Thu, 14 Aug 2025 16:43:36 +0800 Subject: [PATCH] =?UTF-8?q?refactor(wms):=20=E5=B0=86=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E5=AD=97=E6=AE=B5=E4=BB=8E=20sequare=20?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=20sequence?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 WmsBatchServiceImpl 类中的多个方法中,将任务排序字段从 sequare 改为 sequence - 这个改动涉及到任务执行顺序记录、进程间依赖关系构建以及任务间依赖关系构建等多个环节 --- .../java/com/klp/service/impl/WmsBatchServiceImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 605c376f..4a54f971 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 @@ -168,8 +168,8 @@ public class WmsBatchServiceImpl implements IWmsBatchService { // 遍历每一行,记录每个进程在每一行的执行顺序 for (List> row : rows) { - // 按sequare排序 - row.sort(Comparator.comparingInt(task -> Integer.parseInt(task.get("sequare").toString()))); + // 按sequence排序 + row.sort(Comparator.comparingInt(task -> Integer.parseInt(task.get("sequence").toString()))); // 记录每个进程的执行顺序 for (int i = 0; i < row.size(); i++) { @@ -204,7 +204,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++) { @@ -228,8 +228,8 @@ public class WmsBatchServiceImpl implements IWmsBatchService { // 遍历每一行,记录任务间的依赖关系 for (List> row : rows) { - // 按sequare排序 - row.sort(Comparator.comparingInt(task -> Integer.parseInt(task.get("sequare").toString()))); + // 按sequence排序 + row.sort(Comparator.comparingInt(task -> Integer.parseInt(task.get("sequence").toString()))); // 构建依赖关系 for (int i = 0; i < row.size() - 1; i++) {