Parcourir la source

Merge branch 'dev' into dev1.1

wukai il y a 2 ans
Parent
commit
28ea2ceb38

+ 3 - 1
doc-admin/src/main/java/com/doc/web/controller/system/SysUserController.java

@@ -96,7 +96,9 @@ public class SysUserController extends BaseController {
     @ApiOperation("获取本部门下用户树")
     @GetMapping("/tree4dept")
     public UserTreeVO tree4dept() {
-        List<SysDept> deptList = deptService.selectDeptList(new SysDept());
+        SysDept dept = new SysDept();
+        dept.setDeptId(SecurityUtils.getDeptId());
+        List<SysDept> deptList = deptService.selectDeptList(dept);
         List<SysDept> list = deptService.buildDeptTree(deptList);
         SysDept tree = list.get(0);
         return getChildren(tree);