肖洋
2025-02-11 d92f4b3da6ea6ffdaa8325472739820a9ed99b08
注释掉旧变量赋值,更新查询逻辑

将多个变量的赋值和条件判断注释掉,添加新的变量赋值逻辑。具体来说,`result`、`area` 和 `location` 的赋值被注释掉,而 `info` 的查询逻辑使用了新的 `area.AreaCode` 进行查询。
已修改1个文件
25 ■■■■■ 文件已修改
Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MCS/Partial/RequsetCellInfo.cs 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MCS/Partial/RequsetCellInfo.cs
@@ -27,19 +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 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 info = _stockInfoRepository.QueryFirst(x => x.LocationCode == result.LocationID && x.AreaCode == area.AreaCode);
                //todo
                if (info != null)
                {