Merge branch 'master' of gitee.com:youlaiorg/youlai-boot

This commit is contained in:
hxr
2024-01-29 21:59:37 +08:00
14 changed files with 153 additions and 185 deletions

View File

@@ -14,13 +14,13 @@
user_id = #{userId}
</select>
<!-- 统计角色绑定的用户数 -->
<!-- 获取角色绑定的用户数 -->
<select id="countUsersForRole" resultType="java.lang.Integer">
SELECT
count(*)
FROM
sys_user_role t1
INNER JOIN sys_role t2 ON t1.role_id = t2.id AND t2.deleted = 0
INNER JOIN sys_role t2 ON t1.role_id = t2.id AND t2.deleted = 0
INNER JOIN sys_user t3 ON t1.user_id = t3.id
AND t3.deleted = 0
WHERE