From 272ea6040258a7adfc807123036378915860fb90 Mon Sep 17 00:00:00 2001 From: zongzhibin <zongzhibin@weben-smart.com> Date: 周日, 24 11月 2024 14:23:31 +0800 Subject: [PATCH] add --- 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