-- 查看黑名单菜单的完整层级结构
-- 黑名单管理 (id=569) 的父菜单是什么？

SELECT id, pid, `name`, component, menu_type
FROM eb_system_menu 
WHERE id = 569;

-- 查看 pid=0 的顶级菜单
SELECT id, pid, `name`, component, menu_type
FROM eb_system_menu 
WHERE pid = 0 AND is_show = 1
ORDER BY sort;

-- 查看用户管理 (id=674) 的子菜单
SELECT id, pid, `name`, component, menu_type, sort
FROM eb_system_menu 
WHERE pid = 674
ORDER BY sort;

-- 查看封禁菜单的父菜单
SELECT id, pid, `name`, component, menu_type
FROM eb_system_menu 
WHERE id = 674;
