-- 查看菜单层级结构
-- 1. 查看顶级菜单
SELECT menu_id, menu_name, parent_id, order_num, path
FROM sys_menu 
WHERE parent_id = 0
ORDER BY order_num;

-- 2. 查看心理测评管理的配置
SELECT menu_id, menu_name, parent_id, order_num, path, component
FROM sys_menu 
WHERE menu_name LIKE '%心理测评%' OR menu_name LIKE '%测评管理%'
ORDER BY menu_id;

-- 3. 查看知识库管理的当前配置
SELECT menu_id, menu_name, parent_id, order_num, path, component
FROM sys_menu 
WHERE menu_name = '知识库管理';

-- 4. 查看心理网站管理的配置
SELECT menu_id, menu_name, parent_id, order_num, path, component
FROM sys_menu 
WHERE menu_name LIKE '%心理网站%' OR menu_name LIKE '%网站管理%'
ORDER BY menu_id;
