组织架构
This commit is contained in:
+4
-2
@@ -39,14 +39,16 @@ public class TsInstitutionServiceImpl extends ServiceImpl<TsInstitutionDao, TsIn
|
||||
*/
|
||||
@Override
|
||||
public List<TsInstitution> getInstitution() {
|
||||
List<TsInstitution> institutionList = this.list();//查询所有的的数据
|
||||
QueryWrapper<TsInstitution> wrapper=new QueryWrapper<>();
|
||||
wrapper.orderByAsc("num");
|
||||
List<TsInstitution> institutionList = this.list(wrapper);//查询所有的的数据
|
||||
|
||||
//查询第一层机构
|
||||
List<TsInstitution> root=tsInstitutionDao.selectRoot();
|
||||
|
||||
TreeUtil treeUtil = new TreeUtil();
|
||||
List<TsInstitution> institutionTree = treeUtil.treeAsList(institutionList, root);
|
||||
|
||||
System.out.println("dsa");
|
||||
return institutionTree;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user