From 5ab6b36c0c4bd80a31dcdd9f15cc835b7352c4e7 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期四, 16 一月 2025 11:08:02 +0800
Subject: [PATCH] 1

---
 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/ERP/ErpController.cs |   33 ++++++++++++++++++++++++++++++++-
 1 files changed, 32 insertions(+), 1 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/ERP/ErpController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/ERP/ErpController.cs"
index ac5eaf8..405fe83 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/ERP/ErpController.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/ERP/ErpController.cs"
@@ -12,6 +12,7 @@
 using WIDESEA_DTO.Basic;
 using WIDESEA_DTO.ERP;
 using WIDESEA_External.ERPService;
+using WIDESEA_External.Model;
 using WIDESEA_IBasicRepository;
 using WIDESEA_IBasicService;
 using WIDESEA_IInboundRepository;
@@ -33,12 +34,15 @@
         private readonly IBasicService _basicService;
         private readonly IOutboundService _outboundService;
         private readonly IInboundService _inboundService;
+        private readonly IInvokeERPService _invokeERPService;
 
-        public ErpController(IBasicService basicService, IOutboundService outboundService, IInboundService inboundService)
+        public ErpController(IBasicService basicService, IOutboundService outboundService, IInboundService inboundService,
+            IInvokeERPService invokeERPService)
         {
             _basicService = basicService;
             _outboundService = outboundService;
             _inboundService = inboundService;
+            _invokeERPService = invokeERPService;
         }
 
         /// <summary>
@@ -118,5 +122,32 @@
             if (content.Status) return Instance.OK();
             else return Instance.Error(content.Message);
         }
+        /// <summary>
+        /// 鎺ㄩ�丒RP鍑哄簱
+        /// </summary>
+        /// <returns></returns>
+        [HttpPost, Route("InvokeOutStandardsApi"), AllowAnonymous]
+        public string InvokeOutStandardsApi([FromBody] ERPIssueModel issueModel)
+        {
+            return _invokeERPService.InvokeOutStandardsApi(issueModel);
+        }
+        /// <summary>
+        /// 鎺ㄩ�丒RP鏀惰揣
+        /// </summary>
+        /// <returns></returns>
+        [HttpPost, Route("InvokeMatReceiveApi"), AllowAnonymous]
+        public string InvokeMatReceiveApi([FromBody]ERPReceiveModel receiveModel)
+        {
+            return _invokeERPService.InvokeMatReceiveApi(receiveModel);
+        }
+        /// <summary>
+        /// 鎺ㄩ�丒RP鍏ュ簱
+        /// </summary>
+        /// <returns></returns>
+        [HttpPost, Route("InvokeInboundOrderApi"), AllowAnonymous]
+        public string InvokeInboundOrderApi([FromBody]ERPInboundModel inboundModel)
+        {
+            return _invokeERPService.InvokeInboundOrderApi(inboundModel);
+        }
     }
 }

--
Gitblit v1.9.3