From 3167d838a6446283a8978cece82ea60071b65ca0 Mon Sep 17 00:00:00 2001
From: Admin <Admin@ADMIN>
Date: 星期四, 15 一月 2026 08:53:30 +0800
Subject: [PATCH] 最新

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/LocationInfoService.cs |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/LocationInfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/LocationInfoService.cs"
index 16c743a..f3a3025 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/LocationInfoService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/LocationInfoService.cs"
@@ -153,5 +153,24 @@
                 return WebResponseContent.Instance.Error(ex.Message);
             }
         }
+    
+        
+        public string AccessingTunnel(int WarehouseId, int LocationType)
+        {
+            List<Dt_LocationInfo> locationData = BaseDal.QueryData(x => x.WarehouseId == WarehouseId);
+            var roadwayGroups = locationData
+                .Where(x => x.LocationType == LocationType)
+                .GroupBy(x => x.RoadwayNo)
+                .Select(g => new
+                {
+                    RoadwayNo = g.Key,
+                    LocationCount = g.Count(),
+                    AllLocations = g.ToList()
+                })
+                .OrderByDescending(g => g.LocationCount)  // 鏀逛负闄嶅簭鎺掑簭
+                .FirstOrDefault();  // 鍙栫涓�涓紙鏁伴噺鏈�澶氱殑锛�
+
+            return roadwayGroups.RoadwayNo;
+        }
     }
 }

--
Gitblit v1.9.3