|
|
@@ -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);
|