From 64ce9daf8855edebf8c77b40095a4ea597331cd9 Mon Sep 17 00:00:00 2001 From: zlyx <1242874891@qq.com> Date: 星期二, 30 八月 2022 11:44:44 +0800 Subject: [PATCH] fix 修正 spring cache 获取在线用户失败问题, 回退为使用 redis 工具缓存 ; --- ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml index 3d41141..5a55fcb 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml @@ -8,5 +8,10 @@ <result property="userId" column="user_id"/> <result property="roleId" column="role_id"/> </resultMap> + <select id="selectUserIdsByRoleId" resultType="Long"> + select u.user_id from sys_user u + inner join sys_user_role sur + on u.user_id = sur.user_id and sur.role_id = #{roleId} + </select> -</mapper> \ No newline at end of file +</mapper> -- Gitblit v1.9.3