From 3a5e73739050cda77ab84b40f25325052ee1589d Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期三, 08 一月 2025 23:06:55 +0800
Subject: [PATCH] 1
---
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MES/MesController.cs | 40 +++++++++++++++++++++++++++++++++++++---
1 files changed, 37 insertions(+), 3 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 2ba94bd..8e39f2d 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"
@@ -10,9 +10,14 @@
using WIDESEA_ITaskInfoService;
using WIDESEA_TaskInfoService;
using WIDESEA_DTO.ERP;
+using WIDESEA_DTO.MES;
+using WIDESEA_Core.Helper;
namespace WIDESEA_WMSServer.Controllers.MES
{
+ /// <summary>
+ /// MES鎺ュ彛
+ /// </summary>
[Route("api/Mes")]
[ApiController]
public class MesController : ControllerBase
@@ -24,7 +29,7 @@
private readonly IOutboundOrderService _outboundOrderService;
private readonly ITaskService _taskService;
- public MesController(IPurchaseOrderRepository purchaseOrderRepository, IPurchaseOrderService purchaseOrderService, ISupplierInfoService supplierInfoService, IMaterielInfoService materielInfoService, IOutboundOrderService outboundOrderService,ITaskService taskService)
+ public MesController(IPurchaseOrderRepository purchaseOrderRepository, IPurchaseOrderService purchaseOrderService, ISupplierInfoService supplierInfoService, IMaterielInfoService materielInfoService, IOutboundOrderService outboundOrderService, ITaskService taskService)
{
_purchaseOrderRepository = purchaseOrderRepository;
_purchaseOrderService = purchaseOrderService;
@@ -33,7 +38,6 @@
_outboundOrderService = outboundOrderService;
_taskService = taskService;
}
-
/// <summary>
/// 鎺ユ敹MES娴嬭瘯鏋跺嚭搴�
/// </summary>
@@ -42,7 +46,37 @@
[HttpPost, Route("TestToolOut"), AllowAnonymous, MethodParamsValidate]
public MesResponseContent TestToolOut([FromBody] Root<TestToolOutModel> model)
{
- return _taskService.TestToolOut(model.Content);
+ return _taskService.TestToolOut(model.Content);
+ }
+ /// <summary>
+ /// 鎺ユ敹MES娴嬭瘯鏋堕��搴�
+ /// </summary>
+ /// <param name="model"></param>
+ /// <returns></returns>
+ [HttpPost, Route("TestToolBack"), AllowAnonymous, MethodParamsValidate]
+ public MesResponseContent TestToolBack([FromBody] Root<TestToolBackModel> model)
+ {
+ return _taskService.TestToolBack(model.Content);
+ }
+ /// <summary>
+ /// 娴嬭瘯鏋舵姤搴�
+ /// </summary>
+ /// <param name="model"></param>
+ /// <returns></returns>
+ [HttpPost, Route("TestToolScrap"), AllowAnonymous, MethodParamsValidate]
+ public MesResponseContent TestScrap([FromBody] Root<TestToolScrap> model)
+ {
+ return _taskService.TestScrap(model.Content);
+ }
+ [HttpPost, Route("TestSynStock"), AllowAnonymous]
+ public WebResponseContent TestSynStock([FromBody]TestToolSynInfo toolSynInfo)
+ {
+ return _taskService.TestSynStock(toolSynInfo);
+ }
+ [HttpPost, Route("testHttp"), AllowAnonymous, MethodParamsValidate]
+ public string TestScrap(string str)
+ {
+ return HttpMesHelper.GetStr(str);
}
}
}
--
Gitblit v1.9.3