USE soybean_admin;

-- 检查"我的设备"相关路由
SELECT '=== 我的设备路由 ===' AS info;
SELECT route_id, name, path, component, meta, status 
FROM sys_route 
WHERE name LIKE 'my-device%' OR name LIKE 'my_device%'
ORDER BY order_num;

-- 检查"设备申请"相关路由
SELECT '=== 设备申请路由 ===' AS info;
SELECT route_id, name, path, component, meta, status 
FROM sys_route 
WHERE name LIKE 'my-application%' OR name LIKE 'my_application%'
ORDER BY order_num;

-- 检查所有路由的父子关系
SELECT '=== 所有路由概览 ===' AS info;
SELECT route_id, name, path, component, 
       CASE 
         WHEN component LIKE 'layout.%' THEN '父路由'
         WHEN component LIKE 'view.%' THEN '子路由'
         ELSE '其他'
       END AS route_type
FROM sys_route 
ORDER BY order_num;
