@Service @DS(value="authority") @Transactional(rollbackFor=java.lang.Exception.class, propagation=REQUIRES_NEW) public class RolePermissionServiceImpl extends ServiceImpl<RolePermissionMapper,RolePermission> implements IRolePermissionService
构造器和说明 |
---|
RolePermissionServiceImpl() |
限定符和类型 | 方法和说明 |
---|---|
void |
createRolePermission(Long roleId,
Set<Long> permissionIds)
创建角色权限
|
void |
deleteRolePermission(Long roleId)
删除角色权限
|
Set<Long> |
queryPermissionByRoleId(Long roleId)
查询指定角色拥有的权限ID列表
|
Set<Long> |
queryPermissionByRoleIds(Set<Long> roleIds)
查询指定角色集合拥有的权限ID列表
|
alwaysUpdateSomeColumnById, deleteByIdWithFill, insertBatchSomeColumn, insertIgnoreBatchSomeColumn
closeSqlSession, currentMapperClass, executeBatch, executeBatch, executeBatch, getBaseMapper, getEntityClass, getMap, getObj, getOne, getSqlStatement, retBool, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, updateBatchById
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
alwaysUpdateSomeColumnById, deleteByIdWithFill, insertBatchSomeColumn, insertIgnoreBatchSomeColumn
selectJoinCount, selectJoinList, selectJoinListPage, selectJoinMap, selectJoinMaps, selectJoinMapsPage, selectJoinOne
currentModelClass, getByIdDeep, getByIdDeep, getByIdDeep, getMapDeep, getMapDeep, getMapDeep, getOneDeep, getOneDeep, getOneDeep, getOneDeep, getOneDeep, getOneDeep, listByIdsDeep, listByIdsDeep, listByIdsDeep, listByMapDeep, listByMapDeep, listByMapDeep, listDeep, listDeep, listDeep, listDeep, listDeep, listDeep, listMapsDeep, listMapsDeep, listMapsDeep, listMapsDeep, listMapsDeep, listMapsDeep, pageDeep, pageDeep, pageDeep, pageDeep, pageDeep, pageDeep, pageMapsDeep, pageMapsDeep, pageMapsDeep, pageMapsDeep, pageMapsDeep, pageMapsDeep
count, count, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, ktQuery, ktUpdate, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateById
public void createRolePermission(Long roleId, Set<Long> permissionIds)
IRolePermissionService
createRolePermission
在接口中 IRolePermissionService
roleId
- 角色IDpermissionIds
- 权限ID信息public void deleteRolePermission(Long roleId)
IRolePermissionService
deleteRolePermission
在接口中 IRolePermissionService
roleId
- 角色IDpublic Set<Long> queryPermissionByRoleId(Long roleId)
IRolePermissionService
queryPermissionByRoleId
在接口中 IRolePermissionService
roleId
- 角色IDpublic Set<Long> queryPermissionByRoleIds(Set<Long> roleIds)
IRolePermissionService
queryPermissionByRoleIds
在接口中 IRolePermissionService
roleIds
- 角色ID集合