kazelee
2025-05-16 67f74c1d68ccbb69eb8436e70018357533ef9c0a
Controllers/ErpController.cs
@@ -1,10 +1,9 @@
using System;
using HH.WCS.Mobox3.AnGang.config;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Web.Http;
using 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);
        }
    }
}