| | |
| | | package org.jeecg.modules.system.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.InterceptorIgnore; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.jeecg.modules.system.entity.SysUser; |
| | | import org.jeecg.modules.system.entity.SysUserRole; |
| | | import org.jeecg.modules.system.vo.SysUserRoleExitVo; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | @Select("select username from sys_user where id in (select user_id from sys_user_role where role_id = #{roleId})") |
| | | List<String> getUserNameByRoleId(@Param("roleId") String roleId); |
| | | |
| | | /** |
| | | * 通过用户id集合获取用户和角色关系 |
| | | * @param userIds |
| | | * @return |
| | | */ |
| | | @InterceptorIgnore(tenantLine = "true") // 跳过租户插件解析 |
| | | List<SysUserRoleExitVo> queryRoleNamesByUserIds(@Param("userIds") List<String> userIds); |
| | | } |