1
刘磊
2024-11-23 df5e63a89fa2fade5bf87d41f507740ea063e0e4
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 };
            }
        }
    }