类 Y9PersonsToGroupsServiceImpl
- java.lang.Object
-
- net.risesoft.service.relation.impl.Y9PersonsToGroupsServiceImpl
-
- 所有已实现的接口:
Y9PersonsToGroupsService
@Transactional(value="rsTenantTransactionManager", readOnly=true) @Service public class Y9PersonsToGroupsServiceImpl extends Object implements Y9PersonsToGroupsService- 作者:
- dingzhaojun, qinman, mengjuhua
- Date:
- 2022/2/10
-
-
构造器概要
构造器 构造器 说明 Y9PersonsToGroupsServiceImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddGroups(String personId, String[] groupIds)add groups to the person 为人员添加多个用户组voidaddPersons(String groupId, String[] personIds)add persons to the group 为用户组添加人员Y9PersonsToGroupsaddY9PersonsToGroups(String personId, String groupId, Integer maxGroupsOrder, Integer maxPersonsOrder)voiddeleteByGroupId(String groupId)根据用户组ID,删除用户组和人员的映射关系 delete the group-person mapping relationship by groupIDvoiddeleteByPersonId(String personId)根据人员ID,删除用户组和人员的映射关系List<Y9PersonsToGroups>findByGroupId(String groupId)IntegergetNextGroupOrderByPersonId(String personId)根据人员id查询最大的用户组排序号IntegergetNextPersonOrderByGroupId(String groupId)根据组id获取最大的人员排列序号List<Y9PersonsToGroups>listByGroupId(String groupId)根据用户组id获取List<String>listGroupIdsByPersonId(String personId)根据人员id获取组IDvoidonPersonDeleted(net.risesoft.y9.pubsub.event.Y9EntityDeletedEvent<Y9Person> event)List<Y9PersonsToGroups>orderGroups(String personId, String[] groupIds)保存排序结果 save the orders of the groups for this personList<Y9PersonsToGroups>orderPersons(String groupId, String[] personIds)保存排序结果 save the orders of the persons in this groupvoidremove(String personId, String groupId)voidremoveGroups(String personId, String[] groupIds)remove groups from the person 为人员移除用户组voidremovePersons(String groupId, String[] personIds)remove persons from the group 为用户组移除人员
-
-
-
方法详细资料
-
addGroups
@Transactional(readOnly=false) public void addGroups(String personId, String[] groupIds)
从接口复制的说明:Y9PersonsToGroupsServiceadd groups to the person 为人员添加多个用户组- 指定者:
addGroups在接口中Y9PersonsToGroupsService
-
addPersons
@Transactional(readOnly=false) public void addPersons(String groupId, String[] personIds)
从接口复制的说明:Y9PersonsToGroupsServiceadd persons to the group 为用户组添加人员- 指定者:
addPersons在接口中Y9PersonsToGroupsService
-
deleteByGroupId
@Transactional(readOnly=false) public void deleteByGroupId(String groupId)
从接口复制的说明:Y9PersonsToGroupsService根据用户组ID,删除用户组和人员的映射关系 delete the group-person mapping relationship by groupID- 指定者:
deleteByGroupId在接口中Y9PersonsToGroupsService
-
deleteByPersonId
@Transactional(readOnly=false) public void deleteByPersonId(String personId)
从接口复制的说明:Y9PersonsToGroupsService根据人员ID,删除用户组和人员的映射关系- 指定者:
deleteByPersonId在接口中Y9PersonsToGroupsService
-
findByGroupId
public List<Y9PersonsToGroups> findByGroupId(String groupId)
- 指定者:
findByGroupId在接口中Y9PersonsToGroupsService
-
getNextGroupOrderByPersonId
public Integer getNextGroupOrderByPersonId(String personId)
从接口复制的说明:Y9PersonsToGroupsService根据人员id查询最大的用户组排序号- 指定者:
getNextGroupOrderByPersonId在接口中Y9PersonsToGroupsService- 返回:
-
getNextPersonOrderByGroupId
public Integer getNextPersonOrderByGroupId(String groupId)
从接口复制的说明:Y9PersonsToGroupsService根据组id获取最大的人员排列序号- 指定者:
getNextPersonOrderByGroupId在接口中Y9PersonsToGroupsService- 返回:
-
listByGroupId
public List<Y9PersonsToGroups> listByGroupId(String groupId)
从接口复制的说明:Y9PersonsToGroupsService根据用户组id获取- 指定者:
listByGroupId在接口中Y9PersonsToGroupsService- 返回:
-
listGroupIdsByPersonId
public List<String> listGroupIdsByPersonId(String personId)
从接口复制的说明:Y9PersonsToGroupsService根据人员id获取组ID- 指定者:
listGroupIdsByPersonId在接口中Y9PersonsToGroupsService- 返回:
-
orderGroups
@Transactional(readOnly=false) public List<Y9PersonsToGroups> orderGroups(String personId, String[] groupIds)
从接口复制的说明:Y9PersonsToGroupsService保存排序结果 save the orders of the groups for this person- 指定者:
orderGroups在接口中Y9PersonsToGroupsService- 返回:
-
orderPersons
@Transactional(readOnly=false) public List<Y9PersonsToGroups> orderPersons(String groupId, String[] personIds)
从接口复制的说明:Y9PersonsToGroupsService保存排序结果 save the orders of the persons in this group- 指定者:
orderPersons在接口中Y9PersonsToGroupsService- 返回:
-
removeGroups
@Transactional(readOnly=false) public void removeGroups(String personId, String[] groupIds)
从接口复制的说明:Y9PersonsToGroupsServiceremove groups from the person 为人员移除用户组- 指定者:
removeGroups在接口中Y9PersonsToGroupsService
-
removePersons
@Transactional(readOnly=false) public void removePersons(String groupId, String[] personIds)
从接口复制的说明:Y9PersonsToGroupsServiceremove persons from the group 为用户组移除人员- 指定者:
removePersons在接口中Y9PersonsToGroupsService
-
addY9PersonsToGroups
@Transactional(readOnly=false) public Y9PersonsToGroups addY9PersonsToGroups(String personId, String groupId, Integer maxGroupsOrder, Integer maxPersonsOrder)
-
onPersonDeleted
@EventListener @Transactional(readOnly=false) public void onPersonDeleted(net.risesoft.y9.pubsub.event.Y9EntityDeletedEvent<Y9Person> event)
-
-