From 67f74c1d68ccbb69eb8436e70018357533ef9c0a Mon Sep 17 00:00:00 2001
From: kazelee <1847801760@qq.com>
Date: 星期五, 16 五月 2025 17:32:27 +0800
Subject: [PATCH] ERP同步功能部分完善,测试逻辑优化

---
 Controllers/ErpController.cs |   32 ++++++++++++++++++++++++++------
 1 files changed, 26 insertions(+), 6 deletions(-)

diff --git a/Controllers/ErpController.cs b/Controllers/ErpController.cs
index a9761de..50483c5 100644
--- a/Controllers/ErpController.cs
+++ b/Controllers/ErpController.cs
@@ -1,10 +1,9 @@
-锘縰sing System;
-using HH.WCS.Mobox3.AnGang.config;
-using Newtonsoft.Json;
-using System.Collections.Generic;
-using System.Web.Http;
+锘縰sing System.Web.Http;
 
-using static HH.WCS.Mobox3.AnGang.Controllers.ApiModel;
+using HH.WCS.Mobox3.AnGang.Services;
+
+using static HH.WCS.Mobox3.AnGang.Dtos.Request.ErpRequest;
+using static HH.WCS.Mobox3.AnGang.Dtos.Response.ErpResponse;
 
 namespace HH.WCS.Mobox3.AnGang.Controllers {
     /// <summary>
@@ -12,5 +11,26 @@
     /// </summary>
     [RoutePrefix("api")]
     public class ErpController : ApiController {
+        /// <summary>
+        /// 鍏ュ簱鏁版嵁鍚屾(ERP)
+        /// </summary>
+        /// <param name="model"></param>
+        /// <returns></returns>
+        [HttpPost]
+        [Route("InboundDataSync")]
+        public static ErpResult InboundDataSync(InboundDataSyncInfo model) {
+            return ErpService.InboundDataSync(model);
+        }
+
+        /// <summary>
+        /// 鍑哄簱鍙戞枡鍚屾(ERP)
+        /// </summary>
+        /// <param name="model"></param>
+        /// <returns></returns>
+        [HttpPost]
+        [Route("OutboundDataSync")]
+        public static ErpResult OutboundDataSync(OutboundDataSyncInfo model) {
+            return ErpService.OutboundDataSync(model);
+        }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1