public interface PostController extends BaseController<Post>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(Post record,
java.lang.String departmentId)
新增职务记录,并将新增的职务添加到指定部门
|
void |
addPostToDepartment(java.lang.String postId,
java.lang.String departmentId)
将现有职务加入到部门中
|
java.util.List<Post> |
findByAuthority(java.lang.String authorityId,
AuthorityQueryType queryType,
java.lang.String departmentId,
QueryCondition postCondition)
查找拥有指定权限的职务
|
java.util.List<Post> |
findByAuthority(java.lang.String authorityId,
java.lang.Class cls,
AuthorityQueryType queryType,
java.lang.String departmentId,
QueryCondition postCondition)
查找拥有指定权限的职务
|
java.util.List<Post> |
findByDepartment(java.lang.String departmentId,
QueryCondition postCondition)
查找指定部门下的职务
|
java.util.List<Post> |
findByUser(java.lang.String userId,
QueryCondition postCondition)
查找指定用户所属的职务
|
void |
removePostFromDepartment(java.lang.String postId,
java.lang.String departmentId)
将职务从部门中移除(不会删除职务,只会删除职务和部门的关系)
|
add, find, findOne, findWithTotalCount, getById, remove, remove, updatevoid add(Post record, java.lang.String departmentId) throws java.lang.Exception
record - 记录对象departmentId - 所属部门idjava.lang.Exceptionvoid addPostToDepartment(java.lang.String postId,
java.lang.String departmentId)
throws java.lang.Exception
postId - 职务IDdepartmentId - 部门IDjava.lang.Exceptionvoid removePostFromDepartment(java.lang.String postId,
java.lang.String departmentId)
throws java.lang.Exception
postId - 职务IDdepartmentId - 部门IDjava.lang.Exceptionjava.util.List<Post> findByDepartment(java.lang.String departmentId, QueryCondition postCondition) throws java.lang.Exception
departmentId - 部门IDpostCondition - 部门查询条件java.lang.Exceptionjava.util.List<Post> findByUser(java.lang.String userId, QueryCondition postCondition) throws java.lang.Exception
userId - 用户IDpostCondition - 部门查询条件java.lang.Exceptionjava.util.List<Post> findByAuthority(java.lang.String authorityId, AuthorityQueryType queryType, java.lang.String departmentId, QueryCondition postCondition) throws java.lang.Exception
authorityId - 权限IDqueryType - 权限查询类型departmentId - 职务所在的部门IDpostCondition - 部门查询条件java.lang.Exceptionjava.util.List<Post> findByAuthority(java.lang.String authorityId, java.lang.Class cls, AuthorityQueryType queryType, java.lang.String departmentId, QueryCondition postCondition) throws java.lang.Exception
authorityId - 权限IDcls - 权限类queryType - 权限查询类型departmentId - 职务所在的部门IDpostCondition - 部门查询条件java.lang.Exception