From b5fe109b08ce6e1e78696bb7cf41f415dc6a4587 Mon Sep 17 00:00:00 2001
From: 肖洋 <cathay_xy@163.com>
Date: 星期四, 05 十二月 2024 13:33:35 +0800
Subject: [PATCH] 添加任务历史

---
 Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Partial/RequestInTaskAsync.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 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..4e9a194 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
@@ -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