fix(User): 非Root用户导出会带上Root用户
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
LEFT JOIN sys_user_role sur ON u.id = sur.user_id
|
||||
LEFT JOIN sys_role r ON sur.role_id = r.id
|
||||
<where>
|
||||
u.is_deleted = 0
|
||||
u.is_deleted = 0 AND u.username != 'root'
|
||||
<!-- 超级管理员不显示在列表 -->
|
||||
AND r.code != '${@com.youlai.boot.common.constant.SystemConstants@ROOT_ROLE_CODE}'
|
||||
<if test='queryParams.keywords!=null and queryParams.keywords.trim() neq ""'>
|
||||
|
||||
Reference in New Issue
Block a user