From 768405ab8a119d04f4d861f031b9ba38e84cf81c Mon Sep 17 00:00:00 2001
From: yangpeixing <yangpeixing@hnkhzn.com>
Date: 星期三, 01 四月 2026 16:14:24 +0800
Subject: [PATCH] 1
---
WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs b/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs
index 4798bb5..c54e11a 100644
--- a/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs
+++ b/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs
@@ -194,5 +194,39 @@
return await Service.ManualTaskCompleted(taskNum);
}
+ [HttpGet, HttpPost, Route("RGVTaskResending"), AllowAnonymous]
+ public WebResponseContent RGVTaskResending(int taskNum)
+ {
+ try
+ {
+ Dt_Task task = _taskRepository.QueryFirst(x => x.TaskNum == taskNum);
+ if(task == null)
+ {
+ return WebResponseContent.Instance.Error("涓烘壘鍒拌浠诲姟淇℃伅");
+ }
+ 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())
+ {
+ _taskService.UpdateTask(task, TaskStatusEnum.RGV_NEW);
+ }
+ }
+ else
+ {
+ return WebResponseContent.Instance.Error("闈濺GV鎵ц涓姸鎬�");
+ }
+
+ return WebResponseContent.Instance.OK();
+ }
+ catch(Exception ex)
+ {
+ return WebResponseContent.Instance.Error(ex.Message);
+ }
+ }
+
}
}
--
Gitblit v1.9.3