public interface DepartmentController extends BaseController<Department>
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.List<Department> |
findByAuthority(java.lang.String authorityId,
AuthorityQueryType queryType,
boolean addFakeRoot,
QueryCondition departmentCondition)
查找拥有指定权限的部门
|
java.util.List<Department> |
findByAuthority(java.lang.String authorityId,
AuthorityQueryType queryType,
QueryCondition departmentCondition)
查找拥有指定权限的部门
|
java.util.List<Department> |
findByAuthority(java.lang.String authorityId,
java.lang.Class cls,
AuthorityQueryType queryType,
boolean addFakeRoot,
QueryCondition departmentCondition)
查找拥有指定权限的部门
|
java.util.List<Department> |
findByAuthority(java.lang.String authorityId,
java.lang.Class cls,
AuthorityQueryType queryType,
QueryCondition departmentCondition)
查找拥有指定权限的部门
|
java.util.List<Department> |
findByPost(java.lang.String postId,
QueryCondition departmentCondition)
查找指定职务所属的部门
|
java.util.List<Department> |
findByUser(java.lang.String userId,
QueryCondition departmentCondition)
查找指定用户所属的部门
|
java.util.List<Department> |
findChildren(java.lang.String departmentId,
QueryCondition departmentCondition)
查找指定部门的子部门
|
java.util.List<Department> |
findDepartmentTree(QueryCondition departmentCondition)
查找部门,返回带id和pid的完整路径的树结构数据,用于模糊查找,跟
findDepTree(com.fr.stable.query.condition.QueryCondition)的区别是本方法只会返回部门节点而没有职务节点 |
java.util.List<DepRole> |
findDepRoleByUser(java.lang.String userId)
查找指定用户所属的部门职务角色
|
java.util.List<DepItem> |
findDepTree(QueryCondition depItemCondition)
查找部门职务,返回带id和pid的完整路径的树结构数据,用于模糊查找
|
Department |
findParent(java.lang.String departmentId)
获取指定部门的父部门
|
DepRole |
getDepRole(java.lang.String departmentId,
java.lang.String postId)
根据部门职务ID获取部门职务角色
|
DepRole |
getDepRoleById(java.lang.String depRoleId)
根据部门职务角色ID获取部门职务角色
|
add, find, findOne, findWithTotalCount, getById, remove, remove, updatejava.util.List<DepItem> findDepTree(QueryCondition depItemCondition) throws java.lang.Exception
depItemCondition - 查询条件java.lang.Exceptionjava.util.List<Department> findDepartmentTree(QueryCondition departmentCondition) throws java.lang.Exception
findDepTree(com.fr.stable.query.condition.QueryCondition)的区别是本方法只会返回部门节点而没有职务节点departmentCondition - 部门查询条件java.lang.Exceptionjava.util.List<Department> findByPost(java.lang.String postId, QueryCondition departmentCondition) throws java.lang.Exception
postId - 职务IDdepartmentCondition - 部门查询条件java.lang.Exceptionjava.util.List<Department> findChildren(java.lang.String departmentId, QueryCondition departmentCondition) throws java.lang.Exception
departmentId - 部门IDdepartmentCondition - 子部门查询条件java.lang.ExceptionDepartment findParent(java.lang.String departmentId) throws java.lang.Exception
departmentId - 部门IDjava.lang.Exceptionjava.util.List<Department> findByUser(java.lang.String userId, QueryCondition departmentCondition) throws java.lang.Exception
userId - 用户IDdepartmentCondition - 部门查询条件java.lang.Exceptionjava.util.List<DepRole> findDepRoleByUser(java.lang.String userId) throws java.lang.Exception
userId - 用户IDjava.lang.Exceptionjava.util.List<Department> findByAuthority(java.lang.String authorityId, AuthorityQueryType queryType, boolean addFakeRoot, QueryCondition departmentCondition) throws java.lang.Exception
authorityId - 权限IDqueryType - 权限查询类型addFakeRoot - 添加假的根部门departmentCondition - 部门查询条件java.lang.Exceptionjava.util.List<Department> findByAuthority(java.lang.String authorityId, AuthorityQueryType queryType, QueryCondition departmentCondition) throws java.lang.Exception
authorityId - 权限IDqueryType - 权限查询类型departmentCondition - 部门查询条件java.lang.Exceptionjava.util.List<Department> findByAuthority(java.lang.String authorityId, java.lang.Class cls, AuthorityQueryType queryType, boolean addFakeRoot, QueryCondition departmentCondition) throws java.lang.Exception
authorityId - 权限IDcls - 权限类queryType - 权限查询类型addFakeRoot - 添加假的根部门departmentCondition - 部门查询条件java.lang.Exceptionjava.util.List<Department> findByAuthority(java.lang.String authorityId, java.lang.Class cls, AuthorityQueryType queryType, QueryCondition departmentCondition) throws java.lang.Exception
authorityId - 权限IDcls - 权限类queryType - 权限查询类型departmentCondition - 部门查询条件java.lang.ExceptionDepRole getDepRole(java.lang.String departmentId, java.lang.String postId) throws java.lang.Exception
departmentId - 部门IDpostId - 职务IDjava.lang.ExceptionDepRole getDepRoleById(java.lang.String depRoleId) throws java.lang.Exception
depRoleId - 部门职务角色IDjava.lang.Exception