类 Y9PositionServiceImpl
- java.lang.Object
-
- net.risesoft.service.org.impl.Y9PositionServiceImpl
-
- 所有已实现的接口:
Y9PositionService
@Transactional(value="rsTenantTransactionManager", readOnly=true) @Service public class Y9PositionServiceImpl extends Object implements Y9PositionService- 作者:
- dingzhaojun, qinman, mengjuhua
- Date:
- 2022/2/10
-
-
构造器概要
构造器 构造器 说明 Y9PositionServiceImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringbuildName(Y9Job y9Job, List<Y9PersonsToPositions> personsToPositionsList)生成岗位名Y9PositionchangeDisabled(String id)更改禁用状态Y9Positioncreate(String parentId, String jobId)创建岗位Y9Positioncreate(Y9Position y9Position)创建岗位voiddelete(List<String> ids)根据id数组删除岗位voiddeleteById(String positionId)根据主键id删除岗位实例voiddeleteByParentId(String parentId)根据父节点id删除岗位实例(并且移除岗位内的人员)booleanexistsById(String id)根据id判断岗位是否存在Optional<Y9Position>findById(String id)根据id查找岗位List<Y9Position>findByJobId(String jobId)根据职位id查找岗位List<String>findIdByGuidPathStartingWith(String guidPath)查找 guidPath 包含传入参数的对应岗的 idY9PositiongetById(String id)根据主键id获取岗位实例BooleanhasPosition(String positionName, String personId)查询某人是否有某岗位List<Y9Position>listAll()获取所有岗位List<Y9Position>listByDn(String dn)根据dn查询岗位List<Y9Position>listByNameLike(String name)根据名称查询List<Y9Position>listByNameLikeAndDn(String name, String dn)根据名称查询List<Y9Position>listByParentId(String parentId, Boolean disabled)根据父节点id,获取本层级的岗位列表List<Y9Position>listByPersonId(String personId, Boolean disabled)根据人员id,获取本层级的岗位列Y9Positionmove(String positionId, String parentId)移动voidonParentDepartmentDeleted(net.risesoft.y9.pubsub.event.Y9EntityDeletedEvent<Y9Department> event)voidonParentOrganizationDeleted(net.risesoft.y9.pubsub.event.Y9EntityDeletedEvent<Y9Organization> event)voidonParentUpdated(net.risesoft.y9.pubsub.event.Y9EntityUpdatedEvent<? extends Y9OrgBase> event)Y9Positionsave(Y9Position position)保存岗位List<Y9Position>saveOrder(List<String> positionIds)保存新的序号Y9PositionsaveOrUpdate(Y9Position position)保存或者修改此岗位的信息Y9PositionsaveProperties(String positionId, String properties)保存或者更新岗位扩展信息List<Y9Position>treeSearch(String name)针对岗位树,根据岗位名字查找Y9PositionupdateTabIndex(String id, int tabIndex)更新排序序列号
-
-
-
方法详细资料
-
buildName
public String buildName(Y9Job y9Job, List<Y9PersonsToPositions> personsToPositionsList)
从接口复制的说明:Y9PositionService生成岗位名- 指定者:
buildName在接口中Y9PositionService- 参数:
y9Job- 职位personsToPositionsList- 人员和岗位对应列表- 返回:
- String
-
changeDisabled
@Transactional(readOnly=false) public Y9Position changeDisabled(String id)
从接口复制的说明:Y9PositionService更改禁用状态- 指定者:
changeDisabled在接口中Y9PositionService- 参数:
id- ID- 返回:
- 岗位实体
-
create
public Y9Position create(String parentId, String jobId)
从接口复制的说明:Y9PositionService创建岗位- 指定者:
create在接口中Y9PositionService- 参数:
parentId- 父IDjobId- 职位id- 返回:
- 岗位实体
-
create
@Transactional(readOnly=false) public Y9Position create(Y9Position y9Position)
从接口复制的说明:Y9PositionService创建岗位- 指定者:
create在接口中Y9PositionService- 参数:
y9Position- 岗位对象- 返回:
Y9Position
-
delete
@Transactional(readOnly=false) public void delete(List<String> ids)
从接口复制的说明:Y9PositionService根据id数组删除岗位- 指定者:
delete在接口中Y9PositionService- 参数:
ids- id数组
-
deleteById
@Transactional(readOnly=false) public void deleteById(String positionId)
从接口复制的说明:Y9PositionService根据主键id删除岗位实例- 指定者:
deleteById在接口中Y9PositionService- 参数:
positionId- 唯一标识
-
deleteByParentId
@Transactional(readOnly=false) public void deleteByParentId(String parentId)
从接口复制的说明:Y9PositionService根据父节点id删除岗位实例(并且移除岗位内的人员)- 指定者:
deleteByParentId在接口中Y9PositionService- 参数:
parentId- 父节点id
-
existsById
public boolean existsById(String id)
从接口复制的说明:Y9PositionService根据id判断岗位是否存在- 指定者:
existsById在接口中Y9PositionService- 参数:
id- 唯一标识- 返回:
- boolean
-
findById
public Optional<Y9Position> findById(String id)
从接口复制的说明:Y9PositionService根据id查找岗位- 指定者:
findById在接口中Y9PositionService- 参数:
id- 唯一标识- 返回:
Optional<Y9Position>岗位对象 或 null
-
findByJobId
public List<Y9Position> findByJobId(String jobId)
从接口复制的说明:Y9PositionService根据职位id查找岗位- 指定者:
findByJobId在接口中Y9PositionService- 参数:
jobId- 职位id- 返回:
List<Y9Position>
-
findIdByGuidPathStartingWith
public List<String> findIdByGuidPathStartingWith(String guidPath)
从接口复制的说明:Y9PositionService查找 guidPath 包含传入参数的对应岗的 id- 指定者:
findIdByGuidPathStartingWith在接口中Y9PositionService- 参数:
guidPath- guid path- 返回:
List<String>
-
getById
public Y9Position getById(String id)
从接口复制的说明:Y9PositionService根据主键id获取岗位实例- 指定者:
getById在接口中Y9PositionService- 参数:
id- 唯一标识- 返回:
Y9Position岗位对象
-
hasPosition
public Boolean hasPosition(String positionName, String personId)
从接口复制的说明:Y9PositionService查询某人是否有某岗位- 指定者:
hasPosition在接口中Y9PositionService- 参数:
positionName- 岗位名personId- 人员id- 返回:
Boolean
-
listAll
public List<Y9Position> listAll()
从接口复制的说明:Y9PositionService获取所有岗位- 指定者:
listAll在接口中Y9PositionService- 返回:
List<Y9Position>
-
listByDn
public List<Y9Position> listByDn(String dn)
从接口复制的说明:Y9PositionService根据dn查询岗位- 指定者:
listByDn在接口中Y9PositionService- 参数:
dn- dn- 返回:
List<Y9Position>
-
listByNameLike
public List<Y9Position> listByNameLike(String name)
从接口复制的说明:Y9PositionService根据名称查询- 指定者:
listByNameLike在接口中Y9PositionService- 参数:
name- 岗位名- 返回:
List<Y9Position>
-
listByNameLikeAndDn
public List<Y9Position> listByNameLikeAndDn(String name, String dn)
从接口复制的说明:Y9PositionService根据名称查询- 指定者:
listByNameLikeAndDn在接口中Y9PositionService- 参数:
name- 岗位名dn- dn- 返回:
List<Y9Position>
-
listByParentId
public List<Y9Position> listByParentId(String parentId, Boolean disabled)
从接口复制的说明:Y9PositionService根据父节点id,获取本层级的岗位列表- 指定者:
listByParentId在接口中Y9PositionService- 参数:
parentId- 父节点iddisabled- 是否包含禁用的岗位- 返回:
List<Y9Position>
-
listByPersonId
public List<Y9Position> listByPersonId(String personId, Boolean disabled)
从接口复制的说明:Y9PositionService根据人员id,获取本层级的岗位列- 指定者:
listByPersonId在接口中Y9PositionService- 参数:
personId- 人员iddisabled- 是否包含禁用的岗位- 返回:
List<Y9Position>
-
move
@Transactional(readOnly=false) public Y9Position move(String positionId, String parentId)
从接口复制的说明:Y9PositionService移动- 指定者:
move在接口中Y9PositionService- 参数:
positionId- 岗位idparentId- 父节点id- 返回:
Y9Position
-
save
@Transactional(readOnly=false) public Y9Position save(Y9Position position)
从接口复制的说明:Y9PositionService保存岗位- 指定者:
save在接口中Y9PositionService- 参数:
position- 岗位- 返回:
Y9Position
-
saveOrder
@Transactional(readOnly=false) public List<Y9Position> saveOrder(List<String> positionIds)
从接口复制的说明:Y9PositionService保存新的序号- 指定者:
saveOrder在接口中Y9PositionService- 参数:
positionIds- 岗位id数组- 返回:
List<Y9Position>
-
saveOrUpdate
@Transactional(readOnly=false) public Y9Position saveOrUpdate(Y9Position position)
从接口复制的说明:Y9PositionService保存或者修改此岗位的信息- 指定者:
saveOrUpdate在接口中Y9PositionService- 参数:
position- 岗位对象- 返回:
Y9Position
-
saveProperties
@Transactional(readOnly=false) public Y9Position saveProperties(String positionId, String properties)
从接口复制的说明:Y9PositionService保存或者更新岗位扩展信息- 指定者:
saveProperties在接口中Y9PositionService- 参数:
positionId- 岗位idproperties- 扩展属性- 返回:
Y9Position
-
treeSearch
public List<Y9Position> treeSearch(String name)
从接口复制的说明:Y9PositionService针对岗位树,根据岗位名字查找- 指定者:
treeSearch在接口中Y9PositionService- 参数:
name- 岗位名- 返回:
List<Y9Position>
-
updateTabIndex
@Transactional(readOnly=false) public Y9Position updateTabIndex(String id, int tabIndex)
从接口复制的说明:Y9PositionService更新排序序列号- 指定者:
updateTabIndex在接口中Y9PositionService- 参数:
id- 唯一标识tabIndex- 排序序列号- 返回:
Y9Position
-
onParentDepartmentDeleted
@EventListener @Transactional(readOnly=false) public void onParentDepartmentDeleted(net.risesoft.y9.pubsub.event.Y9EntityDeletedEvent<Y9Department> event)
-
onParentOrganizationDeleted
@EventListener @Transactional(readOnly=false) public void onParentOrganizationDeleted(net.risesoft.y9.pubsub.event.Y9EntityDeletedEvent<Y9Organization> event)
-
onParentUpdated
@EventListener @Transactional(readOnly=false) public void onParentUpdated(net.risesoft.y9.pubsub.event.Y9EntityUpdatedEvent<? extends Y9OrgBase> event)
-
-