From ad16e8351b0ece14ac2c1672dea69b08ef079e88 Mon Sep 17 00:00:00 2001 From: 肖洋 <cathay_xy@163.com> Date: 星期三, 15 一月 2025 18:19:03 +0800 Subject: [PATCH] 优化代码并更新配置文件 --- Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs | 22 +++++++++++++++++----- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs index 43b23b6..883a71b 100644 --- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs +++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs @@ -146,6 +146,18 @@ } /// <summary> + /// 闈欑疆NG鍏ュ簱 + /// </summary> + /// <param name="locationCode">璐т綅鍙�</param> + /// <param name="palletCode">鎵樼洏鍙�</param> + /// <returns></returns> + [HttpPost, AllowAnonymous, Route("RequestInBoundTaskNG")] + public async Task<WebResponseContent> RequestInBoundTaskNG([FromBody] RequestTaskDto input) + { + return await Service.CreateAndSendInboundTask(input.PalletCode, input.Position); + } + + /// <summary> /// 甯告俯琛ョ┖鎵樼洏鑷冲垎瀹� /// </summary> /// <param name="input">璇锋眰鏁版嵁</param> @@ -161,11 +173,11 @@ /// </summary> /// <param name="input">璇锋眰鏁版嵁</param> /// <returns></returns> - //[HttpPost, AllowAnonymous, Route("EmergencyTask")] - //public WebResponseContent EmergencyTask([FromBody] object input) - //{ - // //return Service.EmergencyTask(input); - //} + [HttpPost, AllowAnonymous, Route("EmergencyTask")] + public WebResponseContent EmergencyTask([FromBody] object input) + { + return Service.EmergencyTask(input); + } /// <summary> -- Gitblit v1.9.3