From 279077bf41bc726b474ca5d76cd2b8393d41d867 Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期三, 05 十一月 2025 12:16:01 +0800
Subject: [PATCH] 1

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs |   75 +++++++++++++++++++++++++++++++++++--
 1 files changed, 71 insertions(+), 4 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs"
index 4cead0c..fa1cc4c 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs"
@@ -6,6 +6,7 @@
 using WIDESEA_Core.BaseController;
 using WIDESEA_DTO.Stock;
 using WIDESEA_DTO.Task;
+using WIDESEA_DTO.ToMes;
 using WIDESEA_ITaskInfoService;
 using WIDESEA_Model.Models;
 
@@ -21,6 +22,33 @@
         public TaskController(ITaskService service) : base(service)
         {
         }
+
+
+        /// <summary>
+        /// 浠诲姟瀹屾垚鎺ュ彛
+        /// </summary>
+        /// <param name="taskNum"></param>
+        /// <returns></returns>
+        [HttpGet, Route("TaskCompleted"), AllowAnonymous]
+        public WebResponseContent TaskCompleted(int taskNum)
+        {
+            return Service.TaskCompleted(taskNum);
+        }
+
+
+        /// <summary>
+        /// 绉诲簱鐢宠鍒ゆ柇鎺ュ彛
+        /// </summary>
+        /// <param name="taskNum"></param>
+        /// <returns></returns>
+        [HttpGet, Route("IsRelocations"), AllowAnonymous]
+        public WebResponseContent IsRelocations(int taskNum)
+        {
+            return Service.IsRelocations(taskNum);
+        }
+
+
+
         /// <summary>
         /// WCS鐢宠鍏ュ簱浠诲姟(涓嶅垎閰嶈揣浣�)
         /// </summary>
@@ -34,14 +62,53 @@
         }
 
         /// <summary>
-        /// 鍏ュ簱浠诲姟瀹屾垚
+        /// MES涓嬪彂鍑哄簱浠诲姟
         /// </summary>
         /// <param name="taskNum"></param>
         /// <returns></returns>
-        [HttpPost, HttpGet, Route("InboundTaskCompleted"), AllowAnonymous]
-        public WebResponseContent InboundTaskCompleted(int taskNum)
+        [HttpPost, HttpGet, Route("sendExTask"), AllowAnonymous]
+        public ApiResponse<object> sendExTask([FromBody] InOutboundTaskReceived outbound)
         {
-            return Service.InboundTaskCompleted(taskNum);
+            return Service.sendExTask(outbound);
+        }
+
+        /// <summary>
+        /// MES涓嬪彂鍏ュ簱浠诲姟
+        /// </summary>
+        /// <param name="taskNum"></param>
+        /// <returns></returns>
+        [HttpPost, HttpGet, Route("sendEnTask"), AllowAnonymous]
+        public ApiResponse<object> sendEnTask([FromBody] InOutboundTaskReceived outbound)
+        {
+            return Service.sendEnTask(outbound);
+        }
+
+
+        /// <summary>
+        /// 鏂板缓璐т綅
+        /// </summary>
+        [HttpPost, HttpGet, Route("createLocation"), AllowAnonymous]
+        public ApiResponse<object> createLocation([FromBody] List<LocationInfoDto> locationInfo)
+        {
+            return Service.createLocation(locationInfo);
+        }
+
+        /// <summary>
+        /// 淇敼璐т綅
+        /// </summary>
+        [HttpPost, HttpGet, Route("updateLocation"), AllowAnonymous]
+        public ApiResponse<object> updateLocation([FromBody] LocationInfoDto locationInfo)
+        {
+            return Service.updateLocation(locationInfo);
+        }
+
+        /// <summary>
+        /// 鍒犻櫎璐т綅
+        /// </summary>
+        [HttpPost, HttpGet, Route("deleteLocation"), AllowAnonymous]
+        public ApiResponse<object> deleteLocation([FromBody] List<string> locationCode)
+        {
+            return Service.deleteLocation(locationCode);
         }
     }
 }

--
Gitblit v1.9.3