fix 修复主键溢出问题 将查询返回类型改为 Long
This commit is contained in:
		| @@ -26,7 +26,7 @@ public interface SysDeptMapper | ||||
|      * @param deptCheckStrictly 部门树选择项是否关联显示 | ||||
|      * @return 选中部门列表 | ||||
|      */ | ||||
|     public List<Integer> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly); | ||||
|     public List<Long> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly); | ||||
|  | ||||
|     /** | ||||
|      * 根据部门ID查询信息 | ||||
|   | ||||
| @@ -64,7 +64,7 @@ public interface SysMenuMapper | ||||
|      * @param menuCheckStrictly 菜单树选择项是否关联显示 | ||||
|      * @return 选中菜单列表 | ||||
|      */ | ||||
|     public List<Integer> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly); | ||||
|     public List<Long> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly); | ||||
|  | ||||
|     /** | ||||
|      * 根据菜单ID查询信息 | ||||
|   | ||||
| @@ -39,7 +39,7 @@ public interface SysPostMapper | ||||
|      * @param userId 用户ID | ||||
|      * @return 选中岗位ID列表 | ||||
|      */ | ||||
|     public List<Integer> selectPostListByUserId(Long userId); | ||||
|     public List<Long> selectPostListByUserId(Long userId); | ||||
|  | ||||
|     /** | ||||
|      * 查询用户所属岗位组 | ||||
|   | ||||
| @@ -41,7 +41,7 @@ public interface ISysDeptService | ||||
|      * @param roleId 角色ID | ||||
|      * @return 选中部门列表 | ||||
|      */ | ||||
|     public List<Integer> selectDeptListByRoleId(Long roleId); | ||||
|     public List<Long> selectDeptListByRoleId(Long roleId); | ||||
|  | ||||
|     /** | ||||
|      * 根据部门ID查询信息 | ||||
|   | ||||
| @@ -52,7 +52,7 @@ public interface ISysMenuService | ||||
|      * @param roleId 角色ID | ||||
|      * @return 选中菜单列表 | ||||
|      */ | ||||
|     public List<Integer> selectMenuListByRoleId(Long roleId); | ||||
|     public List<Long> selectMenuListByRoleId(Long roleId); | ||||
|  | ||||
|     /** | ||||
|      * 构建前端路由所需要的菜单 | ||||
|   | ||||
| @@ -39,7 +39,7 @@ public interface ISysPostService | ||||
|      * @param userId 用户ID | ||||
|      * @return 选中岗位ID列表 | ||||
|      */ | ||||
|     public List<Integer> selectPostListByUserId(Long userId); | ||||
|     public List<Long> selectPostListByUserId(Long userId); | ||||
|  | ||||
|     /** | ||||
|      * 校验岗位名称 | ||||
|   | ||||
| @@ -100,7 +100,7 @@ public class SysDeptServiceImpl implements ISysDeptService | ||||
|      * @return 选中部门列表 | ||||
|      */ | ||||
|     @Override | ||||
|     public List<Integer> selectDeptListByRoleId(Long roleId) | ||||
|     public List<Long> selectDeptListByRoleId(Long roleId) | ||||
|     { | ||||
|         SysRole role = roleMapper.selectRoleById(roleId); | ||||
|         return deptMapper.selectDeptListByRoleId(roleId, role.isDeptCheckStrictly()); | ||||
|   | ||||
| @@ -128,7 +128,7 @@ public class SysMenuServiceImpl implements ISysMenuService | ||||
|      * @return 选中菜单列表 | ||||
|      */ | ||||
|     @Override | ||||
|     public List<Integer> selectMenuListByRoleId(Long roleId) | ||||
|     public List<Long> selectMenuListByRoleId(Long roleId) | ||||
|     { | ||||
|         SysRole role = roleMapper.selectRoleById(roleId); | ||||
|         return menuMapper.selectMenuListByRoleId(roleId, role.isMenuCheckStrictly()); | ||||
|   | ||||
| @@ -67,7 +67,7 @@ public class SysPostServiceImpl implements ISysPostService | ||||
|      * @return 选中岗位ID列表 | ||||
|      */ | ||||
|     @Override | ||||
|     public List<Integer> selectPostListByUserId(Long userId) | ||||
|     public List<Long> selectPostListByUserId(Long userId) | ||||
|     { | ||||
|         return postMapper.selectPostListByUserId(userId); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user