From ef839d119eec2c28fac5f5ba175d71f926afae44 Mon Sep 17 00:00:00 2001 From: kazelee <1847801760@qq.com> Date: 星期二, 20 五月 2025 11:49:22 +0800 Subject: [PATCH] 修复数据库表字段不匹配、读取重量错误处理等逻辑 --- Controllers/ErpController.cs | 33 +++++++++++++++++++++++++-------- 1 files changed, 25 insertions(+), 8 deletions(-) diff --git a/Controllers/ErpController.cs b/Controllers/ErpController.cs index f09ea57..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,8 +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