wanshenmean
2026-03-27 f049a248557059b601f35cd74e88b67ee3bde567
chore(RouterService): 删除 QueryNextRoute 中的遗留死代码

移除已注释的 BFS 回退查找代码段,保持代码整洁。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
已修改1个文件
10 ■■■■■ 文件已修改
Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/RouterService.cs 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Service/RouterService.cs
@@ -321,16 +321,6 @@
                if (directRoute != null)
                    return directRoute;
                //// 如果没有直接路由,使用查找算法找到朝向终点的路由
                //List<Dt_Router> allRouters = BaseDal.QueryData(x => x.InOutType == routeType);
                //foreach (var route in routes)
                //{
                //    // 检查从这个路由的下一个位置是否能到达终点
                //    var pathToEnd = FindRoutesInMemory(route.NextPosi, endPosi, allRouters, routeType);
                //    if (pathToEnd.Count > 0)
                //        return route;
                //}
                // 如果都不能到达终点,返回第一个路由
                return routes.FirstOrDefault();
            }