From a7f9f1c44f6a1201061e12dbb4c5424f4b44737c Mon Sep 17 00:00:00 2001
From: hutongqing <hutongqing@hnkhzn.com>
Date: 星期一, 23 十二月 2024 21:07:33 +0800
Subject: [PATCH] Update ITaskService.cs

---
 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/MES/MesController.cs |   16 +++++++++++++---
 1 files changed, 13 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..4ef3bc1 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,6 +10,7 @@
 using WIDESEA_ITaskInfoService;
 using WIDESEA_TaskInfoService;
 using WIDESEA_DTO.ERP;
+using WIDESEA_DTO.MES;
 
 namespace WIDESEA_WMSServer.Controllers.MES
 {
@@ -24,7 +25,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 +34,6 @@
             _outboundOrderService = outboundOrderService;
             _taskService = taskService;
         }
-
         /// <summary>
         /// 鎺ユ敹MES娴嬭瘯鏋跺嚭搴�
         /// </summary>
@@ -42,7 +42,17 @@
         [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("TestReturnStock"), AllowAnonymous, MethodParamsValidate]
+        public MesResponseContent TestReturnStock([FromBody] Root<TestToolBackModel> model)
+        {
+            return _taskService.TestReturnStock(model.Content);
         }
     }
 }

--
Gitblit v1.9.3