From 0cc7b55a04bc96c76e8ac3b02793dff1c69e578a Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期二, 14 四月 2026 15:02:26 +0800
Subject: [PATCH] 1
---
WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 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..534f144 100644
--- a/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs
+++ b/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs
@@ -194,6 +194,11 @@
return await Service.ManualTaskCompleted(taskNum);
}
+ /// <summary>
+ /// RGV浠诲姟閲嶅彂
+ /// </summary>
+ /// <param name="taskNum"></param>
+ /// <returns></returns>
[HttpGet, HttpPost, Route("RGVTaskResending"), AllowAnonymous]
public WebResponseContent RGVTaskResending(int taskNum)
{
@@ -202,18 +207,18 @@
Dt_Task task = _taskRepository.QueryFirst(x => x.TaskNum == taskNum);
if(task == null)
{
- return WebResponseContent.Instance.Error("涓烘壘鍒拌浠诲姟淇℃伅");
+ 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())
+ 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