💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## 一、获取组织树形数据 1、业务代码中,注入DepartmentTreeService; 2、业务代码中,调用tree()获取数据; 示例代码: ``` @Autowired private SharedDepartmentTreeService departmentTreeService; ``` ``` model.setTreeobject(departmentTreeService.tree()); ``` ## 二、获取树形字典数据 1、业务代码中,注入SysTreeDataService; 2、业务代码中,调用tree(treeCode); 这里需要传入treeCode,指定展示那棵树(后台定义); 示例代码: ``` @Autowired private SharedSysTreeDataService sharedSysTreeDataService; ``` ``` model.setTreeobject(sysTreeDataService.tree(“TREE_1001”)); ```