diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/SysDeptController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/SysDeptController.java index e47bdf6..34a4e5a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/SysDeptController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/SysDeptController.java @@ -188,7 +188,7 @@ public class SysDeptController extends BaseController @ApiOperation("查询下级") @GetMapping("/detpList") @ResponseBody - public AjaxResult getDeptBydeptId(@RequestParam(required = false) Long deptId) { + public AjaxResult getDeptById(@RequestParam(required = false) Long deptId) { return success(deptService.getDeptBydeptId(Objects.nonNull(deptId) ? deptId : 0)); } }