正在显示
4 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -39,7 +39,7 @@ public interface SysRoleMapper | @@ -39,7 +39,7 @@ public interface SysRoleMapper | ||
| 39 | * @param userId 用户ID | 39 | * @param userId 用户ID |
| 40 | * @return 选中角色ID列表 | 40 | * @return 选中角色ID列表 |
| 41 | */ | 41 | */ |
| 42 | - public List<Integer> selectRoleListByUserId(Long userId); | 42 | + public List<Long> selectRoleListByUserId(Long userId); |
| 43 | 43 | ||
| 44 | /** | 44 | /** |
| 45 | * 通过角色ID查询角色 | 45 | * 通过角色ID查询角色 |
| @@ -49,7 +49,7 @@ public interface ISysRoleService | @@ -49,7 +49,7 @@ public interface ISysRoleService | ||
| 49 | * @param userId 用户ID | 49 | * @param userId 用户ID |
| 50 | * @return 选中角色ID列表 | 50 | * @return 选中角色ID列表 |
| 51 | */ | 51 | */ |
| 52 | - public List<Integer> selectRoleListByUserId(Long userId); | 52 | + public List<Long> selectRoleListByUserId(Long userId); |
| 53 | 53 | ||
| 54 | /** | 54 | /** |
| 55 | * 通过角色ID查询角色 | 55 | * 通过角色ID查询角色 |
| @@ -122,7 +122,7 @@ public class SysRoleServiceImpl implements ISysRoleService | @@ -122,7 +122,7 @@ public class SysRoleServiceImpl implements ISysRoleService | ||
| 122 | * @return 选中角色ID列表 | 122 | * @return 选中角色ID列表 |
| 123 | */ | 123 | */ |
| 124 | @Override | 124 | @Override |
| 125 | - public List<Integer> selectRoleListByUserId(Long userId) | 125 | + public List<Long> selectRoleListByUserId(Long userId) |
| 126 | { | 126 | { |
| 127 | return roleMapper.selectRoleListByUserId(userId); | 127 | return roleMapper.selectRoleListByUserId(userId); |
| 128 | } | 128 | } |
| @@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 65 | <include refid="selectRoleVo"/> | 65 | <include refid="selectRoleVo"/> |
| 66 | </select> | 66 | </select> |
| 67 | 67 | ||
| 68 | - <select id="selectRoleListByUserId" parameterType="Long" resultType="Integer"> | 68 | + <select id="selectRoleListByUserId" parameterType="Long" resultType="Long"> |
| 69 | select r.role_id | 69 | select r.role_id |
| 70 | from sys_role r | 70 | from sys_role r |
| 71 | left join sys_user_role ur on ur.role_id = r.role_id | 71 | left join sys_user_role ur on ur.role_id = r.role_id |
-
请 注册 或 登录 后发表评论