public class PositionService
extends java.lang.Object
构造器和说明 |
---|
PositionService() |
限定符和类型 | 方法和说明 |
---|---|
DepartmentPostBean |
addPosition(java.lang.String postName)
添加职位
|
java.lang.String |
addPosition(java.lang.String postName,
java.lang.String description)
添加职位
|
void |
deletePosition(java.lang.String postId)
删除职位
|
java.util.List<DepartmentPostBean> |
getDepartmentPostNameList()
获取所有部门职位名称(给设计器用)
|
java.util.List<DepartmentPostBean> |
getDepartmentPostTree(java.lang.String currentUserId)
获取部门职位树
|
java.util.List<DepartmentPostBean> |
getDepPositionsUnderParentDepartment(java.lang.String currentUserId,
java.lang.String pId,
boolean containNoDep)
获取部门下的部门职位
|
DepartmentPostBean |
getDepRoleRoot(java.lang.String currentUserId)
获取根部门角色
|
static PositionService |
getInstance() |
java.util.List<DepartmentPostBean> |
getPositions(java.lang.String currentUserId,
java.lang.String keyword)
获取职位
|
java.util.List<DepartmentPostBean> |
getPositionsUnderParentDepartment(java.lang.String currentUserId,
java.lang.String departmentId,
java.lang.String keyword)
获取部门下的所有职位
|
java.lang.String |
getPostNameById(java.lang.String postId)
根据id获取职位名称
|
java.util.List<DepartmentPostBean> |
searchDepPositions(java.lang.String currentUserId,
java.lang.String keyword)
查询部门职位
|
int |
updateDepPositions(java.lang.String departmentId,
DepPostUpdateBean depPostUpdateBean)
添加/删除部门下的职位
|
void |
updatePosition(java.lang.String postId,
java.lang.String postName,
java.lang.String description)
更新职位名称描述
|
public static PositionService getInstance()
public DepartmentPostBean addPosition(java.lang.String postName) throws java.lang.Exception
postName
- 部门名称java.lang.Exception
- 异常public java.lang.String addPosition(java.lang.String postName, java.lang.String description) throws java.lang.Exception
postName
- 职位名description
- 职位描述java.lang.Exception
public void updatePosition(java.lang.String postId, java.lang.String postName, java.lang.String description) throws java.lang.Exception
postId
- 职位IdpostName
- 职位名description
- 职位描述java.lang.Exception
public int updateDepPositions(java.lang.String departmentId, DepPostUpdateBean depPostUpdateBean) throws java.lang.Exception
departmentId
- 部门iddepPostUpdateBean
- 职位对象java.lang.Exception
- 异常public void deletePosition(java.lang.String postId) throws java.lang.Exception
postId
- 职位idjava.lang.Exception
- 异常public java.lang.String getPostNameById(java.lang.String postId) throws java.lang.Exception
postId
- 职位idjava.lang.Exception
- 异常public java.util.List<DepartmentPostBean> getPositions(java.lang.String currentUserId, java.lang.String keyword) throws java.lang.Exception
currentUserId
- 当前用户keyword
- 关键字java.lang.Exception
- 异常public java.util.List<DepartmentPostBean> getPositionsUnderParentDepartment(java.lang.String currentUserId, java.lang.String departmentId, java.lang.String keyword) throws java.lang.Exception
currentUserId
- 当前用户departmentId
- 部门idkeyword
- 关键字java.lang.Exception
- 异常public java.util.List<DepartmentPostBean> getDepPositionsUnderParentDepartment(java.lang.String currentUserId, java.lang.String pId, boolean containNoDep) throws java.lang.Exception
currentUserId
- 当前用户pId
- 父部门idcontainNoDep
- 是否包含部门java.lang.Exception
- 异常public DepartmentPostBean getDepRoleRoot(java.lang.String currentUserId) throws java.lang.Exception
currentUserId
- 当前用户java.lang.Exception
- 异常public java.util.List<DepartmentPostBean> searchDepPositions(java.lang.String currentUserId, java.lang.String keyword) throws java.lang.Exception
currentUserId
- 当前用户keyword
- 关键字java.lang.Exception
- 异常public java.util.List<DepartmentPostBean> getDepartmentPostTree(java.lang.String currentUserId) throws java.lang.Exception
currentUserId
- 当前用户java.lang.Exception
- 异常public java.util.List<DepartmentPostBean> getDepartmentPostNameList() throws java.lang.Exception
java.lang.Exception
- 异常