bklLiudl
昨天 1f61b7db7c7df90929cbb7af7aa8756fded45ed3
Wms/Wms/Controllers/UpApiController.cs
@@ -47,6 +47,8 @@
        private readonly IPdaAsnServer _pdaAsnServer;// PDA
        private readonly IHttpServer _http;
        private string logStr = $@".\log\SAP赋码\Sap下发报文" + DateTime.Now.ToString("yyyyMMdd") + ".txt";
        public UpApiController(IOptions<ApiUrlConfig> setting, IExportNoticeServer exNoticeSvc, IArrivalNoticeServer arrivalNoticeServer, IStockCheckServer stockCheckSvc, IProcurePlanServer procurePlanSvc, IPdaAsnServer pdaAsnServer, IHttpServer http)
        {
            _config = setting.Value;
@@ -60,8 +62,6 @@
        #endregion
        #region JC34 
        /// <summary>
        /// 物料下发
        /// </summary>
@@ -71,10 +71,9 @@
        [HttpPost]
        public IActionResult CreateSku(object model)
        {
            try
            {
                LogFile.SaveLogToFile($"Sap物料主数据:( {model} ),", logStr);
                return Ok(new { result = true, code = "1" ,message = "success" });
            }
            catch (Exception e)
@@ -95,7 +94,8 @@
        {
             
            try
            {
            {
                LogFile.SaveLogToFile($"Sap客户信息主数据:( {model} ),", logStr);
                return Ok(new { result = true, code = "1", message = "success" });
            }
            catch (Exception e)
@@ -117,6 +117,7 @@
            try
            {
                LogFile.SaveLogToFile($"Sap入库单下发:( {model} ),", logStr);
                return Ok(new { result = true, code = "1", message = "success" });
            }
            catch (Exception e)
@@ -137,6 +138,7 @@
            try
            {
                LogFile.SaveLogToFile($"Sap出库单下发:( {model} ),", logStr);
                return Ok(new { result = true, code = "1", message = "success" });
            }
            catch (Exception e)
@@ -158,9 +160,9 @@
            try
            {
            //    var sd = JsonConvert.SerializeObject(model);
            //    var sd2 = JsonConvert.DeserializeObject<BoxPalletBindVm>(sd);
                //    var sd = JsonConvert.SerializeObject(model);
                //    var sd2 = JsonConvert.DeserializeObject<BoxPalletBindVm>(sd);
                LogFile.SaveLogToFile($"Sap质量状态变更:( {model} ),", logStr);
                return Ok(new { result = true, code = "1", message = "success" });
            }
            catch (Exception e)