Ztree树结构优化

This commit is contained in:
RuoYi
2019-03-01 15:26:04 +08:00
parent 161c0f1a67
commit 1d01d20b49
10 changed files with 234 additions and 120 deletions

View File

@ -1,7 +1,7 @@
package com.ruoyi.system.service;
import java.util.List;
import java.util.Map;
import com.ruoyi.common.base.Ztree;
import com.ruoyi.system.domain.SysDept;
import com.ruoyi.system.domain.SysRole;
@ -26,7 +26,7 @@ public interface ISysDeptService
* @param dept 部门信息
* @return 所有部门信息
*/
public List<Map<String, Object>> selectDeptTree(SysDept dept);
public List<Ztree> selectDeptTree(SysDept dept);
/**
* 根据角色ID查询菜单
@ -34,7 +34,7 @@ public interface ISysDeptService
* @param role 角色对象
* @return 菜单列表
*/
public List<Map<String, Object>> roleDeptTreeData(SysRole role);
public List<Ztree> roleDeptTreeData(SysRole role);
/**
* 查询部门人数