From 1faef6894400be9923b24038fddb7f9218bd7b6b Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期一, 30 三月 2026 18:19:16 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/SuZhouGuanHong/ShanMeiXinNengYuan
---
Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs | 69 ++++++++++++++++++++++++++++++++++
1 files changed, 68 insertions(+), 1 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 aa283c7..17d2a3f 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskInfo/TaskController.cs
@@ -1,6 +1,7 @@
锘縰sing Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
+using System.DirectoryServices.Protocols;
using WIDESEA_Common.CommonEnum;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
@@ -149,7 +150,7 @@
/// </summary>
/// <param name="taskDto"></param>
/// <returns></returns>
- [HttpGet, HttpPost, Route(" CreateRobotChangePalletTask"), AllowAnonymous]
+ [HttpGet, HttpPost, Route("CreateRobotChangePalletTask"), AllowAnonymous]
public async Task<WebResponseContent?> CreateRobotChangePalletTaskAsync([FromBody] StockDTO taskDto)
{
return await Service.CreateRobotChangePalletTaskAsync(taskDto);
@@ -198,5 +199,71 @@
{
return await Service.GetPalletCodeCellAsync(input);
}
+
+ #region 鏋佸嵎搴撲换鍔℃ā鍧�
+
+ /// <summary>
+ /// 鍑哄叆搴撶敵璇�
+ /// </summary>
+ /// <param name="applyInOutDto">璇锋眰鍙傛暟</param>
+ /// <returns></returns>
+ [HttpPost("ApplyInOut"), AllowAnonymous]
+ public async Task<AGVResponse> ApplyInOutAsync([FromBody] ApplyInOutDto applyInOutDto)
+ {
+ return await Service.ApplyInOutAsync(applyInOutDto);
+ }
+ /// <summary>
+ /// 鎵嬪姩鍑哄簱瀹屾垚鍙嶉缁橝GV
+ /// </summary>
+ /// <param name="outTaskCompleteDto">璇锋眰鍙傛暟</param>
+ /// <returns></returns>
+ [HttpPost, Route("OutTaskComplete"), AllowAnonymous]
+ public async Task<WebResponseContent> OutTaskComplete([FromBody] OutTaskCompleteDto outTaskCompleteDto)
+ {
+ return await Service.OutTaskComplete(outTaskCompleteDto);
+ }
+ ///// <summary>
+ ///// 浠诲姟瀹屾垚
+ ///// </summary>
+ ///// <param name="wCSTask">璇锋眰鍙傛暟</param>
+ ///// <returns></returns>
+ //[HttpPost, Route("TaskCompleted"), AllowAnonymous]
+ //public async Task<WebResponseContent?> TaskCompleted([FromBody] WCSTaskDTO wCSTask)
+ //{
+ // return await Service.TaskCompleted(wCSTask);
+ //}
+ /// <summary>
+ /// 杈撻�佺嚎鐢宠杩涘叆
+ /// </summary>
+ /// <param name="applyEnterDto">璇锋眰鍙傛暟</param>
+ /// <returns></returns>
+ [HttpPost("ApplyEnter"), AllowAnonymous]
+ public async Task<AGVResponse?> ApplyEnterAsync([FromBody] ApplyEnterDto applyEnterDto)
+ {
+ return await Service.ApplyEnterAsync(applyEnterDto);
+ }
+
+ /// <summary>
+ /// 鍙栨斁璐у畬鎴�
+ /// </summary>
+ /// <param name="taskCompleteDto">璇锋眰鍙傛暟</param>
+ /// <returns></returns>
+ [HttpPost("TaskComplete"), AllowAnonymous]
+ public async Task<AGVResponse?> TaskCompleteAsync([FromBody] TaskCompleteDto taskCompleteDto)
+ {
+ return await Service.TaskCompleteAsync(taskCompleteDto);
+ }
+
+ /// <summary>
+ /// 浠诲姟鍙栨秷
+ /// </summary>
+ /// <param name="taskCancelDto">璇锋眰鍙傛暟</param>
+ /// <returns></returns>
+ [HttpPost("TaskCancel"), AllowAnonymous]
+ public async Task<AGVResponse?> TaskCancelAsync([FromBody] TaskCancelDto taskCancelDto)
+ {
+ return await Service.TaskCancelAsync(taskCancelDto);
+ }
+ #endregion 鏋佸嵎搴撲换鍔℃ā鍧�
}
}
--
Gitblit v1.9.3