@Service public class SysRoleServiceImpl extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<SysRoleMapper,SysRole> implements SysRoleService
| 构造器和说明 |
|---|
SysRoleServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkRoleAllowed(SysRole role) |
boolean |
checkRoleKeyUnique(SysRole role) |
boolean |
checkRoleNameUnique(SysRole role) |
int |
countUserRoleByRoleId(Long roleId)
通过角色ID查询角色使用数量
|
int |
deleteAuthUser(SysUserRole userRole) |
int |
deleteAuthUsers(Long roleId,
Long[] userIds) |
int |
deleteRoleByIds(Long[] roleIds) |
int |
insertAuthUsers(Long roleId,
Long[] userIds) |
int |
insertRole(SysRole role) |
int |
insertRoleMenu(SysRole role)
新增角色菜单信息
|
com.baomidou.mybatisplus.core.metadata.IPage<SysRole> |
selectListPage(com.baomidou.mybatisplus.extension.plugins.pagination.Page<SysRole> page,
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper<SysRole> query) |
List<SysRole> |
selectRoleList(SysRole sysRole) |
Collection<String> |
selectRolePermissionByUserId(Long userId) |
List<SysRole> |
selectRolesByUserId(Long userId) |
int |
updateRole(SysRole role) |
int |
updateRoleStatus(SysRole role) |
closeSqlSession, currentMapperClass, currentModelClass, executeBatch, executeBatch, executeBatch, getBaseMapper, getEntityClass, getMap, getObj, getOne, getSqlStatement, removeBatchByIds, removeBatchByIds, removeById, removeById, removeByIds, retBool, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, updateBatchByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, 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, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateByIdpublic com.baomidou.mybatisplus.core.metadata.IPage<SysRole> selectListPage(com.baomidou.mybatisplus.extension.plugins.pagination.Page<SysRole> page, com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper<SysRole> query)
selectListPage 在接口中 SysRoleServicepublic Collection<String> selectRolePermissionByUserId(Long userId)
selectRolePermissionByUserId 在接口中 SysRoleServicepublic int updateRoleStatus(SysRole role)
updateRoleStatus 在接口中 SysRoleServicepublic void checkRoleAllowed(SysRole role)
checkRoleAllowed 在接口中 SysRoleServicepublic boolean checkRoleNameUnique(SysRole role)
checkRoleNameUnique 在接口中 SysRoleServicepublic boolean checkRoleKeyUnique(SysRole role)
checkRoleKeyUnique 在接口中 SysRoleServicepublic int insertRole(SysRole role)
insertRole 在接口中 SysRoleServicepublic int deleteRoleByIds(Long[] roleIds)
deleteRoleByIds 在接口中 SysRoleServicepublic int countUserRoleByRoleId(Long roleId)
countUserRoleByRoleId 在接口中 SysRoleServiceroleId - 角色IDpublic int updateRole(SysRole role)
updateRole 在接口中 SysRoleServicepublic List<SysRole> selectRolesByUserId(Long userId)
selectRolesByUserId 在接口中 SysRoleServicepublic List<SysRole> selectRoleList(SysRole sysRole)
selectRoleList 在接口中 SysRoleServicepublic int insertAuthUsers(Long roleId, Long[] userIds)
insertAuthUsers 在接口中 SysRoleServicepublic int deleteAuthUser(SysUserRole userRole)
deleteAuthUser 在接口中 SysRoleServicepublic int deleteAuthUsers(Long roleId, Long[] userIds)
deleteAuthUsers 在接口中 SysRoleServicepublic int insertRoleMenu(SysRole role)
role - 角色对象Copyright © 2023. All rights reserved.