-- 检查拉黑菜单状态

-- 1. 查看社交互动菜单ID
SELECT id, pid, `name`, component, menu_type, is_show FROM eb_system_menu WHERE `name` = '社交互动';

-- 2. 查看社交互动下所有子菜单（包括隐藏的）
SELECT id, pid, `name`, component, sort, is_show, is_delete 
FROM eb_system_menu 
WHERE pid = (SELECT id FROM eb_system_menu WHERE `name` = '社交互动' LIMIT 1)
ORDER BY sort;

-- 3. 查看拉黑菜单是否存在
SELECT id, pid, `name`, component, is_show, is_delete 
FROM eb_system_menu 
WHERE `name` IN ('用户拉黑', '房间拉黑');

-- 4. 查看角色权限
SELECT rm.rid, rm.menu_id, m.`name` 
FROM eb_system_role_menu rm 
JOIN eb_system_menu m ON rm.menu_id = m.id 
WHERE m.`name` IN ('用户拉黑', '房间拉黑');

-- 5. 查看群组管理的配置作为参考
SELECT id, pid, `name`, component, sort, is_show, menu_type 
FROM eb_system_menu 
WHERE `name` = '群组管理';
