From edb23a1c8d21b5431631e511e64a25e4517b0894 Mon Sep 17 00:00:00 2001 From: 刘磊 <1161824510@qq.com> Date: 星期三, 04 十二月 2024 14:13:12 +0800 Subject: [PATCH] 分容火警出库,分容空框出库 --- Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MCS/Partial/RequsetCellInfo.cs | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MCS/Partial/RequsetCellInfo.cs b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MCS/Partial/RequsetCellInfo.cs index 340e770..ca5323d 100644 --- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MCS/Partial/RequsetCellInfo.cs +++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MCS/Partial/RequsetCellInfo.cs @@ -16,7 +16,7 @@ /// </summary> /// <param name="json"></param> /// <returns></returns> - public WebResponseContent RequsetCellInfo(object json) + public object RequsetCellInfo(object json) { WebResponseContent content = new WebResponseContent(); try @@ -25,14 +25,23 @@ var result = JsonConvert.DeserializeObject<RequsetCellInfo>(json.ToString()); - //_stockInfoRepository.QueryFirst(x=>x.LocationCode == result.LocationID && x) + var info = _stockInfoRepository.QueryFirst(x => x.LocationCode == result.LocationID); //todo + if (info != null) + { + LogFactory.GetLog("鍒嗗鑾峰彇搴撲綅鎵樼洏").Info(true, $"\r\r--------------------------------------"); + LogFactory.GetLog("鍒嗗鑾峰彇搴撲綅鎵樼洏").Info(true, result); + return new { code = 1, palletBarcode = info.PalletCode }; + } + else + { + return new { code = 0, palletBarcode = "",message="搴撲綅鏃犲簱瀛樿褰�" }; + } - return content.OK(); } catch (Exception ex) { - return content.Error(ex.Message); + return new { code = 0, palletBarcode = "", message = ex.Message }; } } } -- Gitblit v1.9.3