From 5af11cc200dd5ebe474b9c0475883b0e6d1e3759 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期三, 11 三月 2026 10:00:49 +0800
Subject: [PATCH] 重构整个项目:改进代码质量和架构

---
 Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs b/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs
index 6ece3ee..030aaf0 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs
@@ -4,7 +4,7 @@
 using WIDESEA_Common.CommonEnum;
 using WIDESEA_Core;
 using WIDESEA_Core.BaseController;
-using WIDESEA_DTO;
+using WIDESEA_DTO.GradingMachine;
 using WIDESEA_DTO.Stock;
 using WIDESEA_DTO.Task;
 using WIDESEA_ITaskInfoService;
@@ -106,9 +106,9 @@
         /// <param name="taskDto"></param>
         /// <returns></returns>
         [HttpGet, HttpPost, Route("UpdateTaskByStatus"), AllowAnonymous]
-        public async Task<WebResponseContent?> UpdateTaskByStatusAsync([FromBody] int taskId, int newStatus)
+        public async Task<WebResponseContent?> UpdateTaskByStatusAsync([FromBody] UpdateTaskDto taskDto)
         {
-            return await Service.UpdateTaskByStatusAsync(taskId, newStatus);
+            return await Service.UpdateTaskByStatusAsync(taskDto.Id, taskDto.NewStatus);
         }
 
         /// <summary>
@@ -117,7 +117,7 @@
         /// <param name="input"></param>
         /// <returns></returns>
         [HttpGet, HttpPost, Route("InOrOutCompleted"), AllowAnonymous]
-        public async Task<WebResponseContent?> InOrOutCompletedAsync([FromBody] InputDto input)
+        public async Task<WebResponseContent?> InOrOutCompletedAsync([FromBody] GradingMachineInputDto input)
         {
             return await Service.InOrOutCompletedAsync(input);
         }
@@ -128,7 +128,7 @@
         /// <param name="input"></param>
         /// <returns></returns>
         [HttpGet, HttpPost, Route("SendLocationStatus"), AllowAnonymous]
-        public async Task<WebResponseContent?> SendLocationStatusAsync([FromBody] InputDto input)
+        public async Task<WebResponseContent?> SendLocationStatusAsync([FromBody] GradingMachineInputDto input)
         {
             return await Service.SendLocationStatusAsync(input);
         }
@@ -139,7 +139,7 @@
         /// <param name="input"></param>
         /// <returns></returns>
         [HttpGet, HttpPost, Route("RequestOutbound"), AllowAnonymous]
-        public async Task<WebResponseContent?> RequestOutboundAsync([FromBody] InputDto input)
+        public async Task<WebResponseContent?> RequestOutboundAsync([FromBody] GradingMachineInputDto input)
         {
             return await Service.RequestOutboundAsync(input);
         }
@@ -150,7 +150,7 @@
         /// <param name="input"></param>
         /// <returns></returns>
         [HttpGet, HttpPost, Route("GetPalletCodeCell"), AllowAnonymous]
-        public async Task<WebResponseContent?> GetPalletCodeCellAsync([FromBody] InputDto input)
+        public async Task<WebResponseContent?> GetPalletCodeCellAsync([FromBody] GradingMachineInputDto input)
         {
             return await Service.GetPalletCodeCellAsync(input);
         }

--
Gitblit v1.9.3