fix(User): 非Root用户导出会带上Root用户

This commit is contained in:
xiaosong
2025-03-09 20:02:04 +08:00
parent b402a4a704
commit 95786f9555

View File

@@ -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 ""'>