|
|
@ -52,4 +52,17 @@ public class OptDeptLevelController { |
|
|
|
List<Long> userDeptScope = optSysDeptService.getUserDeptScope(userId, typeKeys); |
|
|
|
return new Result().ok(userDeptScope); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 根据部门id 查询部门所有上级机构信息 |
|
|
|
* |
|
|
|
* @param deptId |
|
|
|
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.DeptLevelAndLeaderDTO> |
|
|
|
* @author work@yujt.net.cn |
|
|
|
* @date 2020/6/24 10:26 |
|
|
|
*/ |
|
|
|
@GetMapping("deptlevel/{deptId}") |
|
|
|
public Result<DeptLevelAndLeaderDTO> getDeptLevelById(@PathVariable("deptId") Long deptId) { |
|
|
|
return new Result().ok(optSysDeptService.getDeptLevelById(deptId)); |
|
|
|
} |
|
|
|
} |
|
|
|