diff --git a/epdc-cloud-optimize-yushan/epdc-optimize-department/src/main/java/com/elink/esua/epdc/optimize/modules/deptlevel/controller/OptDeptLevelController.java b/epdc-cloud-optimize-yushan/epdc-optimize-department/src/main/java/com/elink/esua/epdc/optimize/modules/deptlevel/controller/OptDeptLevelController.java index f755c8b..952670b 100644 --- a/epdc-cloud-optimize-yushan/epdc-optimize-department/src/main/java/com/elink/esua/epdc/optimize/modules/deptlevel/controller/OptDeptLevelController.java +++ b/epdc-cloud-optimize-yushan/epdc-optimize-department/src/main/java/com/elink/esua/epdc/optimize/modules/deptlevel/controller/OptDeptLevelController.java @@ -52,4 +52,17 @@ public class OptDeptLevelController { List userDeptScope = optSysDeptService.getUserDeptScope(userId, typeKeys); return new Result().ok(userDeptScope); } + + /** + * 根据部门id 查询部门所有上级机构信息 + * + * @param deptId + * @return com.elink.esua.epdc.commons.tools.utils.Result + * @author work@yujt.net.cn + * @date 2020/6/24 10:26 + */ + @GetMapping("deptlevel/{deptId}") + public Result getDeptLevelById(@PathVariable("deptId") Long deptId) { + return new Result().ok(optSysDeptService.getDeptLevelById(deptId)); + } }