-- 授予手机号15900000000的用户超级管理员权限
-- 修改sys_user表中的role_id为1（超级管理员角色ID）

UPDATE sys_user 
SET role_id = 1 
WHERE mobile = '15900000000' AND is_delete = 0;

-- 查询修改结果
SELECT id, name, mobile, role_id, status, create_time 
FROM sys_user 
WHERE mobile = '15900000000' AND is_delete = 0;

-- 验证角色是否正确
SELECT u.id, u.name, u.mobile, u.role_id, r.name as role_name, r.description
FROM sys_user u
LEFT JOIN sys_role r ON u.role_id = r.id
WHERE u.mobile = '15900000000' AND u.is_delete = 0;

