From 4ecfe88d40b1a4f42cd8bc569b679768806e289f Mon Sep 17 00:00:00 2001
From: xiazhengtongxue <133085197+xiazhengtongxue@users.noreply.github.com>
Date: 星期六, 25 四月 2026 16:25:52 +0800
Subject: [PATCH] 1

---
 Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs
index 7515054..5b2143f 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs
@@ -1,6 +1,7 @@
 锘縰sing Microsoft.AspNetCore.Authorization;
 using Microsoft.AspNetCore.Http;
 using Microsoft.AspNetCore.Mvc;
+using System.Threading.Channels;
 using WIDESEAWCS_Core;
 using WIDESEAWCS_Core.BaseController;
 using WIDESEAWCS_DTO.TaskInfo;
@@ -25,6 +26,12 @@
             return Service.ReceiveWMSTask(taskDTOs);
         }
 
+        [HttpPost, Route("ReceiveManualTask"), AllowAnonymous]
+        public WebResponseContent ReceiveManualTask([FromBody] List<WMSTaskDTO> taskDTOs)
+        {
+            return Service.ReceiveManualTask(taskDTOs);
+        }
+
         [HttpPost, HttpGet(), Route("UpdateTaskExceptionMessage")]
         public WebResponseContent UpdateTaskExceptionMessage(int taskNum, string message)
         {
@@ -47,6 +54,17 @@
         public WebResponseContent RollbackTaskStatusToLast(int taskNum)
         {
             return Service.RollbackTaskStatusToLast(taskNum);
+        }
+
+        /// <summary>
+        /// 浠诲姟鍙栨秷
+        /// </summary>
+        /// <param name="taskNum"></param>
+        /// <returns></returns>
+        [HttpPost, Route("CancelTask"), AllowAnonymous]
+        public WebResponseContent CancelTask(int taskNum)
+        {
+            return Service.CancelTask(taskNum);
         }
     }
 }

--
Gitblit v1.9.3