| | |
| | | * @param userId 用户ID
|
| | | * @return 选中角色ID列表
|
| | | */
|
| | | public List<Integer> selectRoleListByUserId(Long userId);
|
| | | public List<Long> selectRoleListByUserId(Long userId);
|
| | |
|
| | | /**
|
| | | * 通过角色ID查询角色
|
| | |
| | | * @param userId 用户ID
|
| | | * @return 选中角色ID列表
|
| | | */
|
| | | public List<Integer> selectRoleListByUserId(Long userId);
|
| | | public List<Long> selectRoleListByUserId(Long userId);
|
| | |
|
| | | /**
|
| | | * 通过角色ID查询角色
|
| | |
| | | * @return 选中角色ID列表
|
| | | */
|
| | | @Override
|
| | | public List<Integer> selectRoleListByUserId(Long userId)
|
| | | public List<Long> selectRoleListByUserId(Long userId)
|
| | | {
|
| | | return roleMapper.selectRoleListByUserId(userId);
|
| | | }
|
| | |
| | | <include refid="selectRoleVo"/>
|
| | | </select>
|
| | |
|
| | | <select id="selectRoleListByUserId" parameterType="Long" resultType="Integer">
|
| | | <select id="selectRoleListByUserId" parameterType="Long" resultType="Long">
|
| | | select r.role_id
|
| | | from sys_role r
|
| | | left join sys_user_role ur on ur.role_id = r.role_id
|