From 02771e1f094f82f5de81e28ad26ecf68e73549f7 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周六, 23 11月 2024 16:36:24 +0800
Subject: [PATCH] 修复查询库位bug

---
 CC/iWareSql/DataAccess/StationHandlerV2.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/CC/iWareSql/DataAccess/StationHandlerV2.cs b/CC/iWareSql/DataAccess/StationHandlerV2.cs
index 9c33aa9..717e298 100644
--- a/CC/iWareSql/DataAccess/StationHandlerV2.cs
+++ b/CC/iWareSql/DataAccess/StationHandlerV2.cs
@@ -181,18 +181,18 @@
                     var emptyStationList = edm.V_EmptyStation.ToList();
 
                     //涓嶉殢鏈烘帓搴�
-                    emptyStationList = emptyStationList.OrderByDescending(x => x.LaneNo).ThenByDescending(x => x.ColumnNo).ThenBy(x => x.LayerNo).ToList();
+                    emptyStationList = emptyStationList.OrderBy(x => x.LaneNo).ThenBy(x => x.LayerNo).ThenBy(x => x.ColumnNo).ToList();
 
 
                     //澧炲姞璇ュ簱浣嶆槸鍚﹁浠诲姟鍗犵敤鐨勭瓫閫� [EditBy shaocx,2022-06-02]
                     //emptyStationList = FilterStationForDoingTask(edm, emptyStationList);
                     List<int> usePlaceTypeList = new List<int>();
-                    int placeType = TCSCommon.GetPlaceTypeByWidthLength(upiObj, upiObj.Length, upiObj.Width,ref usePlaceTypeList);
+                    int placeType = TCSCommon.GetPlaceTypeByWidthLength(upiObj, upiObj.Length, upiObj.Width, ref usePlaceTypeList);
                     //浼樺厛鏌ヨ
-                    var my_emptyStationList = emptyStationList.Where(x => usePlaceTypeList.Contains( x.PlaceType)).OrderBy(x=>x.PlaceType).ToList();
+                    var my_emptyStationList = emptyStationList.Where(x => usePlaceTypeList.Contains(x.PlaceType)).OrderBy(x => x.PlaceType).ToList();
                     if (my_emptyStationList?.Count() > 0)
                     {
-                        wms_base_place toPlace = StationHandler.GetPlaceByPlaceId(emptyStationList.First().Id, edm);
+                        wms_base_place toPlace = StationHandler.GetPlaceByPlaceId(my_emptyStationList.First().Id, edm);
                         return toPlace;
                     }
                     else

--
Gitblit v1.9.3