From 4fc31b41c205507607c91ab3afe10fbc06a9aa09 Mon Sep 17 00:00:00 2001
From: yangpeixing <yangpeixing@hnkhzn.com>
Date: 星期五, 05 十二月 2025 13:52:15 +0800
Subject: [PATCH] 1.添加启动提升机、停止提升机、复位提升机功能 2.优化初始化提升机功能

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Task/TaskController.cs |   31 ++++++++++++++++---------------
 1 files changed, 16 insertions(+), 15 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Task/TaskController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Task/TaskController.cs"
index d126566..bf0795b 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Task/TaskController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Task/TaskController.cs"
@@ -1,4 +1,5 @@
-锘縰sing WIDESEA_DTO;
+锘縰sing Org.BouncyCastle.Asn1.Mozilla;
+using WIDESEA_DTO;
 
 namespace WIDESEA_WMSServer.Controllers.Task;
 
@@ -62,16 +63,11 @@
         return await Service.RequestInboundTaskAsync(input);
     }
 
-    /// <summary>
-    /// 鏇存柊璐т綅浠诲姟鐘舵�佸埌涓嬩竴涓妭鐐�
-    /// </summary>
-    /// <param name="input">璇锋眰鏁版嵁</param>
-    /// <returns></returns>
-    [HttpPost, HttpGet, AllowAnonymous, Route("RequestLocationAsync")]
+    [HttpPost, HttpGet, AllowAnonymous, Route("RequestRelocationTaskAsync")]
     [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })]
-    public async Task<WebResponseContent> RequestLocationAsync([FromBody] RequestTaskDto input)
+    public Task<WebResponseContent> RequestRelocationTaskAsync(string SourceAddress, string TargetAddress)
     {
-        return await Service.RequestLocationAsync(input);
+        return Service.RequestRelocationTaskAsync(SourceAddress, TargetAddress);
     }
 
     /// <summary>
@@ -93,9 +89,9 @@
     /// <returns></returns>
     [HttpPost, HttpGet, AllowAnonymous, Route("OutBoundTaskAsync")]
     [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 2 })]
-    public Task<WebResponseContent> OutBoundTaskAsync(string palletCode)
+    public Task<WebResponseContent> OutBoundTaskAsync(string palletCode, string remark, int doubleTray)
     {
-        return Service.OutBoundTaskAsync(palletCode);
+        return Service.OutBoundTaskAsync(palletCode, remark, doubleTray);
     }
 
     [HttpPost, HttpGet, AllowAnonymous, Route("OtherOutBoundTaskAsync")]
@@ -158,15 +154,20 @@
     }
 
     [HttpPost, AllowAnonymous, Route("AGVIsNeedRelocationAsync")]
-    [TypeFilter(typeof(ThrottleFilter), Arguments = new object[] { 5 })]
     public async Task<WebResponseContent> AGVIsNeedRelocationAsync([FromBody] RequestTaskDto taskDto)
     {
         return await Service.AGVIsNeedRelocationAsync(taskDto);
     }
 
-    [HttpPost, AllowAnonymous, Route("GetTaskData")]
-    public async Task<WebResponseContent> GetTaskData()
+    [HttpPost, AllowAnonymous, Route("UpdateStartLocationInfo")]
+    public async Task<WebResponseContent> UpdateStartLocationInfo([FromBody]Dt_Task task)
     {
-        return await Service.GetTaskData();
+        return await Service.UpdateStartLocationInfo(task);
     }
+    [HttpPost,HttpGet, AllowAnonymous, Route("RequestLocation")]
+    public Task<WebResponseContent> RequestLocation(string palletCode)
+    {
+        return Service.RequestLocation(palletCode);
+    }
+
 }
\ No newline at end of file

--
Gitblit v1.9.3