refactor(wms): 将任务排序字段从 sequare 改为 sequence
- 在 WmsBatchServiceImpl 类中的多个方法中,将任务排序字段从 sequare 改为 sequence - 这个改动涉及到任务执行顺序记录、进程间依赖关系构建以及任务间依赖关系构建等多个环节
This commit is contained in:
@@ -168,8 +168,8 @@ public class WmsBatchServiceImpl implements IWmsBatchService {
|
||||
|
||||
// 遍历每一行,记录每个进程在每一行的执行顺序
|
||||
for (List<Map<String, Object>> 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<Map<String, Object>> 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<Map<String, Object>> 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++) {
|
||||
|
||||
Reference in New Issue
Block a user