From 67d4e9ca4267049cc67cff15828080d2d5dfce0b Mon Sep 17 00:00:00 2001
From: yangpeixing <yangpeixing@hnkhzn.com>
Date: 星期三, 01 四月 2026 16:23:01 +0800
Subject: [PATCH] 1

---
 WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs b/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs
index c54e11a..afc2007 100644
--- a/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs
+++ b/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs
@@ -206,14 +206,14 @@
                 }
                 if (task.TaskState == TaskStatusEnum.RGV_Executing.ObjToInt())
                 {
-                    if (task.TaskType >= TaskTypeEnum.Outbound.ObjToInt() && task.TaskType <= TaskTypeEnum.Inbound.ObjToInt())
-                    {
-                        _taskService.UpdateTask(task, TaskStatusEnum.RGV_Execute);
-                    }
-                    else if (task.TaskType >= TaskTypeEnum.Inbound.ObjToInt())
+                    if (task.TaskType >= TaskTypeEnum.Inbound.ObjToInt())
                     {
                         _taskService.UpdateTask(task, TaskStatusEnum.RGV_NEW);
                     }
+                    else if (task.TaskType >= TaskTypeEnum.Outbound.ObjToInt() && task.TaskType < TaskTypeEnum.Inbound.ObjToInt())
+                    {
+                        _taskService.UpdateTask(task, TaskStatusEnum.RGV_Execute);
+                    }
                 }
                 else
                 {

--
Gitblit v1.9.3