From 8c8532db8fc7fa76b7fe4c254a36d67c6af24ace Mon Sep 17 00:00:00 2001 From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com> Date: 星期三, 11 六月 2025 14:46:33 +0800 Subject: [PATCH] 添加物料编码字段并更新查询逻辑 --- Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MCS/Partial/RequsetCellInfo.cs | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 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 ea59c06..fde68ec 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 @@ -27,12 +27,24 @@ if (string.IsNullOrEmpty(json.ToString())) throw new Exception("涓婁紶鍙傛暟涓虹┖"); + //var result = JsonConvert.DeserializeObject<RequsetCellInfo>(json.ToString()); + + ////var area = _areaInfoRepository.QueryFirst(x => x.AreaID == result.LocationArea); + + //var location = _locationRepository.QueryFirst(x => x.LocationCode == result.LocationID && x.AreaId == result.LocationArea); + + //if (location != null) + //{ + // throw new Exception("璇锋眰寮傚父锛氭湭鐭ュ簱浣�"); + //} + + //var info = _stockInfoRepository.QueryFirst(x => x.LocationCode == result.LocationID && x.LocationId == location.Id); + var result = JsonConvert.DeserializeObject<RequsetCellInfo>(json.ToString()); var area = _areaInfoRepository.QueryFirst(x => x.AreaID == result.LocationArea); var info = _stockInfoRepository.QueryFirst(x => x.LocationCode == result.LocationID && x.AreaCode == area.AreaCode); - //todo if (info != null) { -- Gitblit v1.9.3