From e59dc198187db08cf208ba5e23deb722b13d8f3a Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期二, 01 七月 2025 14:03:54 +0800
Subject: [PATCH] 波次界面,添加查看订单关联信息--展开

---
 rsf-server/src/main/java/com/vincent/rsf/server/manager/schedules/TaskSchedules.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/schedules/TaskSchedules.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/schedules/TaskSchedules.java
index 7043713..8ef2ecf 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/schedules/TaskSchedules.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/schedules/TaskSchedules.java
@@ -3,6 +3,7 @@
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.vincent.rsf.framework.exception.CoolException;
 import com.vincent.rsf.server.api.utils.LocUtils;
+import com.vincent.rsf.server.common.constant.Constants;
 import com.vincent.rsf.server.manager.controller.params.LocToTaskParams;
 import com.vincent.rsf.server.manager.enums.LocStsType;
 import com.vincent.rsf.server.manager.enums.TaskStsType;
@@ -122,7 +123,7 @@
                 params.setOrgLoc(shallowLoc).setType(TaskType.TASK_TYPE_LOC_MOVE.type + "");
                 //鐢熸垚绉诲簱浠诲姟
                 Task moveTask = locItemService.genMoveTask(params, loginUserId);
-                moveTask.setSort(task.getSort() + 1);
+                moveTask.setSort(!Objects.isNull(task.getSort()) ? task.getSort() + 1 : Constants.TASK_SORT_DEFAULT_VALUE + 1);
                 if (!taskService.updateById(moveTask)) {
                     throw new Exception("浠诲姟浼樺厛绾ф洿鏂板け璐ワ紒锛�");
                 }

--
Gitblit v1.9.1