| | |
| | | @PostMapping(value = "/dept/user/tree/auth") |
| | | @ManagerAuth |
| | | public R deptUserTree(@RequestParam(required = false, defaultValue = "") String condition) throws IOException, ClassNotFoundException { |
| | | ArrayList<Map<String, Object>> tree = treeUtils.getDeptUserTree(String.valueOf(getDeptId()), getHostId()); |
| | | ArrayList<Map<String, Object>> tree = treeUtils.getDeptUserTree(String.valueOf(getDeptId()), getHostId(), getUserId()); |
| | | // 深拷贝 |
| | | List<Map<String, Object>> result = ListUtils.deepCopy(tree); |
| | | if (!Cools.isEmpty(condition)) { |