From e3e5d863f7da346e8beaed4fb6ed4a4fca0cb22b Mon Sep 17 00:00:00 2001 From: whywhyo <1511349576@qq.com> Date: 星期五, 05 五月 2023 10:22:56 +0800 Subject: [PATCH] 111 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZInfoUserController.java | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZInfoUserController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZInfoUserController.java index 86671ae..3fdc182 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZInfoUserController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZInfoUserController.java @@ -186,8 +186,8 @@ * 瀹舵牴缃� */ @GetMapping("/root") - public AjaxResult listAllPeopleWithTree(){ - return zInfoUserService.listWithTree(); + public AjaxResult listAllPeopleWithTree(@PathParam("depth") Integer depth){ + return zInfoUserService.listWithTree(depth); } @@ -208,6 +208,14 @@ return zInfoUserService.addParent(fatherId,motherId); } + /** + * 鏍规嵁鏈汉id鏌ヨ鏈汉淇℃伅浠ュ強閰嶅伓淇℃伅 + */ + @GetMapping("/listMyself/{id}") + public AjaxResult listMySelfAndSpouse(@PathVariable("id") Long id){ + return zInfoUserService.listMySelfAndSpouse(id); + } + -- Gitblit v1.9.1