From 150b8d2d049ceb69cb301d12c38aae190c21a05c Mon Sep 17 00:00:00 2001 From: whywhyo <1511349576@qq.com> Date: 星期六, 13 五月 2023 21:52:36 +0800 Subject: [PATCH] 1 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZInfoUserController.java | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 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..341001e 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,11 +208,13 @@ return zInfoUserService.addParent(fatherId,motherId); } - - - - - + /** + * 鏍规嵁鏈汉id鏌ヨ鏈汉淇℃伅浠ュ強閰嶅伓淇℃伅 + */ + @GetMapping("/listMyself/{id}") + public AjaxResult listMySelfAndSpouse(@PathVariable("id") Long id){ + return zInfoUserService.listMySelfAndSpouse(id); + } } -- Gitblit v1.9.1