From 35bc44ab49de4d4f667f6661a79f94e04751f0da Mon Sep 17 00:00:00 2001 From: 刘磊 <1161824510@qq.com> Date: 星期二, 10 十二月 2024 21:01:42 +0800 Subject: [PATCH] 1 --- Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Partial/RequestInTaskAsync.cs | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Partial/RequestInTaskAsync.cs b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Partial/RequestInTaskAsync.cs index edfdcc7..5eb3c43 100644 --- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Partial/RequestInTaskAsync.cs +++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Partial/RequestInTaskAsync.cs @@ -109,7 +109,7 @@ var resultProcessApply = JsonConvert.DeserializeObject<ResultProcessApply>(content.Data.ToString()); if (!resultProcessApply.Success) return content.Error("宸ヨ壓鐢宠澶辫触"); - var number = resultProcessApply.ProcessInfo.Where(x => x.ProcessCode == boxing.ProcessCode).FirstOrDefault().Number.ToInt32(); + var number = resultProcessApply.ProcessInfo.Where(x => x.ProcessCode.Contains(boxing.ProcessCode)).FirstOrDefault().Number.ToInt32(); foreach (var item in resultProcessApply.ProcessInfo) { if (item.Number.ToInt32() == number + 1) @@ -172,15 +172,15 @@ { WebResponseContent content = new WebResponseContent(); // TODO 鍒涘缓浠诲姟閫佽嚦NG鎺掑嚭鍙� - var stationManagers = _stationManagerRepository.QueryData(x => x.stationType == 1 && x.stationChildCode == input.Position && x.stationArea == area.AreaCode).ToList(); - if (stationManagers.Count <= 0) + var stationManagers = _stationManagerRepository.QueryData(x => x.stationType == 1 && x.stationChildCode == input.Position && x.stationArea == area.AreaCode).FirstOrDefault(); + if (stationManagers == null) { throw new Exception("鏈壘鍒癗G鍏ュ簱绔欏彴閰嶇疆"); } - List<string> NGStation = stationManagers.Select(x => x.stationNGLocation).ToList(); + List<string> NGStation = stationManagers.Roadway.Split(',').ToList(); if (NGStation.Count <= 0) { - NGStation = stationManagers.Select(x => x.stationNGChildCode).ToList(); + NGStation = stationManagers.stationNGChildCode.Split(',').ToList(); } content = await CreateNewTask(input, NGStation, 2); return content.Error("瀛樺湪寮傚父鐢佃姱"); -- Gitblit v1.9.3