From e8042fe43a178ca26fe4fe4f8cf5dedbfc9910fd Mon Sep 17 00:00:00 2001 From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com> Date: 星期四, 03 七月 2025 10:50:24 +0800 Subject: [PATCH] 更新任务查询逻辑以包含条形码在CommonConveyorLineJob.cs和 CommonConveyorLine_GWJob.cs文件中,修改了多个任务查询方法,现支持使用任务号、子设备代码和条形码进行查询。这一改动旨在提高任务查询的准确性。同时,移除了不再需要的注释代码行。 --- Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MCS/MCSController.cs | 41 ++++++++++++++++++++++++++++++++++------- 1 files changed, 34 insertions(+), 7 deletions(-) diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MCS/MCSController.cs b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MCS/MCSController.cs index 636959b..eee0b1a 100644 --- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MCS/MCSController.cs +++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MCS/MCSController.cs @@ -1,5 +1,7 @@ -锘縰sing Microsoft.AspNetCore.Http; +锘縰sing AutoMapper.Configuration.Annotations; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; +using WIDESEA_Core.BaseController; using WIDESEA_DTO; using WIDESEA_IStoragIntegrationServices; @@ -10,29 +12,54 @@ public class MCSController : Controller { private readonly IMCSService _MCSService; + private readonly IHttpContextAccessor _httpContextAccessor; - public MCSController(IMCSService MCSService) { _MCSService = MCSService; } + public MCSController(IMCSService MCSService, IHttpContextAccessor httpContextAccessor) + { + _httpContextAccessor = httpContextAccessor; + _MCSService = MCSService; + } - [HttpPost("NotifyFinishTest")] + /// <summary> + /// 鍒嗗娴嬭瘯瀹屾垚閫氱煡 + /// </summary> + /// <param name="input"></param> + /// <returns></returns> + [HttpPost, Route("NotifyFinishTest"), AllowAnonymous] public WebResponseContent NotifyFinishTest([FromBody] object input) { return _MCSService.NotifyFinishTest(input); } - [HttpPost("RequestChangeLocation")] + /// <summary> + /// 璇锋眰绉诲簱 + /// </summary> + /// <param name="input"></param> + /// <returns></returns> + [HttpPost, Route("RequestChangeLocation"), AllowAnonymous] public WebResponseContent RequestChangeLocation([FromBody] object input) { return _MCSService.RequestChangeLocation(input); } - [HttpPost("ModifyAccessStatus")] + /// <summary> + /// 鍒嗗搴撲綅鍚屾 + /// </summary> + /// <param name="input"></param> + /// <returns></returns> + [HttpPost, Route("ModifyAccessStatus"), AllowAnonymous] public WebResponseContent ModifyAccessStatus([FromBody] object input) { return _MCSService.ModifyAccessStatus(input); } - [HttpPost("RequsetCellInfo")] - public WebResponseContent RequsetCellInfo([FromBody] object input) + /// <summary> + /// 鍒嗗鑾峰彇搴撲綅鎵樼洏 + /// </summary> + /// <param name="input"></param> + /// <returns></returns> + [HttpPost, Route("RequestCellInfo"), AllowAnonymous] + public object RequsetCellInfo([FromBody] object input) { return _MCSService.RequsetCellInfo(input); } -- Gitblit v1.9.3