From e7be74e711076896e7e841b54691daa95067c567 Mon Sep 17 00:00:00 2001 From: wangxinhui <wangxinhui@hnkhzn.com> Date: 星期四, 12 六月 2025 15:54:49 +0800 Subject: [PATCH] 1 --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MES/MesController.cs | 45 +++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 41 insertions(+), 4 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MES/MesController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MES/MesController.cs" index 0c04ed1..790729f 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MES/MesController.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MES/MesController.cs" @@ -14,6 +14,8 @@ using WIDESEA_Core.Helper; using Autofac.Core; using WIDESEA_DTO.Stock; +using WIDESEA_External.Model; +using WIDESEA_External.ERPService; namespace WIDESEA_WMSServer.Controllers.MES { @@ -26,11 +28,12 @@ { private readonly IOutboundService _outboundService; private readonly ITaskService _taskService; - - public MesController(IOutboundService outboundService, ITaskService taskService) + private readonly IInvokeERPService _invokeERPService; + public MesController(IOutboundService outboundService, ITaskService taskService,IInvokeERPService invokeERPService) { _outboundService = outboundService; _taskService = taskService; + _invokeERPService = invokeERPService; } /// <summary> @@ -43,7 +46,26 @@ { return _taskService.TestToolOut(model.Content); } - + /// <summary> + /// 鎺ユ敹MES闃茬剨娲惧伐 + /// </summary> + /// <param name="model"></param> + /// <returns></returns> + [HttpPost, Route("SolderMaskOutNotice"), AllowAnonymous, MethodParamsValidate] + public MesResponseContent SolderMaskOutNotice([FromBody] Root<SolderMaskOutNotice> model) + { + return _taskService.SolderMaskOutNotice(model.Content); + } + /// <summary> + /// 鎺ユ敹MES闃茬剨鍒扮嚎杈� + /// </summary> + /// <param name="model"></param> + /// <returns></returns> + [HttpPost, Route("SolderMaskOut"), AllowAnonymous, MethodParamsValidate] + public MesResponseContent SolderMaskOut([FromBody] Root<SolderMaskOut> model) + { + return _taskService.SolderMaskOut(model.Content); + } /// <summary> /// 鎺ユ敹MES娴嬭瘯鏋堕��搴� /// </summary> @@ -245,6 +267,21 @@ { return _taskService.PPGeneratePKOutboundTask(orderDetailId, stockSelectViews); } - + /// <summary> + /// 妫�楠屽崟鍥炰紶鏇存柊 + /// </summary> + /// <param name="model"></param> + /// <returns></returns> + [HttpPost, Route("CheckResultReturn"), AllowAnonymous, MethodParamsValidate] + public MesResponseContent CheckResultReturn([FromBody] Root<ERPCheckModel> model) + { + string content = _invokeERPService.InvokeCheckOrderApi(model.Content); + ErpRequestContent requestContent = content.DeserializeObject<ErpRequestContent>(); + if (requestContent.res != 1) + { + return MesResponseContent.Instance.Error(requestContent.Data); + } + return MesResponseContent.Instance.OK("鎴愬姛"); + } } } -- Gitblit v1.9.3