| | |
| | | public List<SysDept> selectDeptList(SysDept dept);
|
| | |
|
| | | /**
|
| | | * 查询部门树结构信息
|
| | | * |
| | | * @param dept 部门信息
|
| | | * @return 部门树信息集合
|
| | | */
|
| | | public List<TreeSelect> selectDeptTreeList(SysDept dept);
|
| | |
|
| | | /**
|
| | | * 构建前端所需要树结构
|
| | | *
|
| | | * @param depts 部门列表
|
| | |
| | | * @param roleId 角色ID
|
| | | * @return 选中部门列表
|
| | | */
|
| | | public List<Integer> selectDeptListByRoleId(Long roleId);
|
| | | public List<Long> selectDeptListByRoleId(Long roleId);
|
| | |
|
| | | /**
|
| | | * 根据部门ID查询信息
|
| | |
| | | * @param dept 部门信息
|
| | | * @return 结果
|
| | | */
|
| | | public String checkDeptNameUnique(SysDept dept);
|
| | | public boolean checkDeptNameUnique(SysDept dept);
|
| | |
|
| | | /**
|
| | | * 校验部门是否有数据权限
|
| | |
| | | * @return 结果
|
| | | */
|
| | | public int deleteDeptById(Long deptId);
|
| | |
|
| | | /**
|
| | | * 查询顶层部门id
|
| | | * @param deptId
|
| | | * @return
|
| | | */
|
| | | Long maxLevelDeptId(Long deptId);
|
| | | }
|