From e6c271d8c2455d8309f52f6ba0c4f03f270f28b2 Mon Sep 17 00:00:00 2001 From: yujt Date: Wed, 24 Jun 2020 10:41:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/OptDeptLevelController.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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)); + } }