schangxiang@126.com
2024-11-23 02771e1f094f82f5de81e28ad26ecf68e73549f7
CC/iWareSql/DataAccess/StationHandlerV2.cs
@@ -181,7 +181,7 @@
                    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]
@@ -192,7 +192,7 @@
                    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