public class DepartmentControllerImpl extends AbstractController implements DepartmentController
| 构造器和说明 |
|---|
DepartmentControllerImpl(ControllerSession session) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(Department record)
新增记录
|
java.util.List<Department> |
find(QueryCondition queryCondition)
查找记录
|
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的完整路径的树结构数据,用于模糊查找,跟
DepartmentController.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 |
findOne(QueryCondition queryCondition)
查找一条记录,找不到返回null
|
Department |
findParent(java.lang.String departmentId)
获取指定部门的父部门
|
DataList<Department> |
findWithTotalCount(QueryCondition queryCondition)
查找记录,附带返回该查询条件下的数据总条数
|
Department |
getById(java.lang.String id)
通过id获取记录
|
DepRole |
getDepRole(java.lang.String departmentId,
java.lang.String postId)
根据部门职务ID获取部门职务角色
|
DepRole |
getDepRoleById(java.lang.String depRoleId)
根据部门职务角色ID获取部门职务角色
|
void |
remove(QueryCondition queryCondition)
删除记录,根据查询条件来删除
|
void |
remove(java.lang.String id)
删除记录
|
void |
update(Department record)
更新记录,根据记录id来更新
|
addDepRole, getSession, removeDepRolepublic DepartmentControllerImpl(ControllerSession session)
public java.util.List<Department> findByPost(java.lang.String postId, QueryCondition departmentCondition) throws java.lang.Exception
DepartmentControllerfindByPost 在接口中 DepartmentControllerpostId - 职务IDdepartmentCondition - 部门查询条件java.lang.Exceptionpublic java.util.List<Department> findChildren(java.lang.String departmentId, QueryCondition departmentCondition) throws java.lang.Exception
DepartmentControllerfindChildren 在接口中 DepartmentControllerdepartmentId - 部门IDdepartmentCondition - 子部门查询条件java.lang.Exceptionpublic Department findParent(java.lang.String departmentId) throws java.lang.Exception
DepartmentControllerfindParent 在接口中 DepartmentControllerdepartmentId - 部门IDjava.lang.Exceptionpublic java.util.List<Department> findByUser(java.lang.String userId, QueryCondition departmentCondition) throws java.lang.Exception
DepartmentControllerfindByUser 在接口中 DepartmentControlleruserId - 用户IDdepartmentCondition - 部门查询条件java.lang.Exceptionpublic java.util.List<DepRole> findDepRoleByUser(java.lang.String userId) throws java.lang.Exception
DepartmentControllerfindDepRoleByUser 在接口中 DepartmentControllerfindDepRoleByUser 在类中 AbstractControlleruserId - 用户IDjava.lang.Exceptionpublic java.util.List<Department> findByAuthority(java.lang.String authorityId, AuthorityQueryType queryType, QueryCondition departmentCondition) throws java.lang.Exception
DepartmentControllerfindByAuthority 在接口中 DepartmentControllerauthorityId - 权限IDqueryType - 权限查询类型departmentCondition - 部门查询条件java.lang.Exceptionpublic java.util.List<Department> findByAuthority(java.lang.String authorityId, AuthorityQueryType queryType, boolean addFakeRoot, QueryCondition departmentCondition) throws java.lang.Exception
DepartmentControllerfindByAuthority 在接口中 DepartmentControllerauthorityId - 权限IDqueryType - 权限查询类型addFakeRoot - 添加假的根部门departmentCondition - 部门查询条件java.lang.Exceptionpublic java.util.List<Department> findByAuthority(java.lang.String authorityId, java.lang.Class cls, AuthorityQueryType queryType, QueryCondition departmentCondition) throws java.lang.Exception
DepartmentControllerfindByAuthority 在接口中 DepartmentControllerauthorityId - 权限IDcls - 权限类queryType - 权限查询类型departmentCondition - 部门查询条件java.lang.Exceptionpublic java.util.List<Department> findByAuthority(java.lang.String authorityId, java.lang.Class cls, AuthorityQueryType queryType, boolean addFakeRoot, QueryCondition departmentCondition) throws java.lang.Exception
DepartmentControllerfindByAuthority 在接口中 DepartmentControllerauthorityId - 权限IDcls - 权限类queryType - 权限查询类型addFakeRoot - 添加假的根部门departmentCondition - 部门查询条件java.lang.Exceptionpublic void add(Department record) throws java.lang.Exception
DataOperatoradd 在接口中 DataOperator<Department>record - 记录对象java.lang.Exceptionpublic Department getById(java.lang.String id) throws java.lang.Exception
DataOperatorgetById 在接口中 DataOperator<Department>id - 记录idjava.lang.Exceptionpublic void update(Department record) throws java.lang.Exception
DataOperatorupdate 在接口中 DataOperator<Department>record - 记录对象java.lang.Exceptionpublic void remove(java.lang.String id)
throws java.lang.Exception
DataOperatorremove 在接口中 DataOperator<Department>id - 记录idjava.lang.Exceptionpublic void remove(QueryCondition queryCondition) throws java.lang.Exception
DataOperatorremove 在接口中 DataOperator<Department>queryCondition - 查询条件java.lang.Exceptionpublic java.util.List<Department> find(QueryCondition queryCondition) throws java.lang.Exception
DataOperatorfind 在接口中 DataOperator<Department>queryCondition - 查询条件java.lang.Exceptionpublic Department findOne(QueryCondition queryCondition) throws java.lang.Exception
DataOperatorfindOne 在接口中 DataOperator<Department>queryCondition - 查询条件java.lang.Exceptionpublic DataList<Department> findWithTotalCount(QueryCondition queryCondition) throws java.lang.Exception
DataOperatorfindWithTotalCount 在接口中 DataOperator<Department>queryCondition - 查询条件java.lang.Exceptionpublic java.util.List<DepItem> findDepTree(QueryCondition depItemCondition) throws java.lang.Exception
DepartmentControllerfindDepTree 在接口中 DepartmentControllerdepItemCondition - 查询条件java.lang.Exceptionpublic java.util.List<Department> findDepartmentTree(QueryCondition departmentCondition) throws java.lang.Exception
DepartmentControllerDepartmentController.findDepTree(com.fr.stable.query.condition.QueryCondition)的区别是本方法只会返回部门节点而没有职务节点findDepartmentTree 在接口中 DepartmentControllerdepartmentCondition - 部门查询条件java.lang.Exceptionpublic DepRole getDepRole(java.lang.String departmentId, java.lang.String postId) throws java.lang.Exception
DepartmentControllergetDepRole 在接口中 DepartmentControllerdepartmentId - 部门IDpostId - 职务IDjava.lang.Exceptionpublic DepRole getDepRoleById(java.lang.String depRoleId) throws java.lang.Exception
DepartmentControllergetDepRoleById 在接口中 DepartmentControllerdepRoleId - 部门职务角色IDjava.lang.Exception