-- 检查超级管理员权限
SELECT 
    u.mobile,
    u.name,
    r.role_name,
    m.name as menu_name,
    m.authority
FROM sys_user u
LEFT JOIN sys_role r ON u.role_id = r.id
LEFT JOIN sys_role_menu rm ON r.id = rm.role_id
LEFT JOIN sys_menu m ON rm.menu_id = m.id
WHERE u.mobile = '15900000000'
  AND m.authority LIKE '%delivery%'
ORDER BY m.authority;
