@Service public class SysUserRoleServiceImpl extends ExtendServiceImpl<SysUserRoleMapper,SysUserRole> implements SysUserRoleService
baseMapper, entityClass, log, mapperClassDEFAULT_BATCH_SIZE| 构造器和说明 |
|---|
SysUserRoleServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
addUserRoles(Long userId,
List<String> roleCodes)
插入用户角色关联关系
|
boolean |
deleteByUserId(Long userId)
根据UserId删除该用户角色关联关系
|
List<SysRole> |
listRoles(Long userId)
通过用户ID 获取用户所有角色ID
|
com.hccake.ballcat.common.model.domain.PageResult<RoleBindUserVO> |
queryUserPageByRoleCode(com.hccake.ballcat.common.model.domain.PageParam pageParam,
RoleBindUserQO roleBindUserQO)
通过角色标识,查询用户列表
|
boolean |
unbindRoleUser(Long userId,
String roleCode)
解绑角色和用户关系
|
boolean |
updateUserRoles(Long userId,
List<String> roleCodes)
更新用户关联关系
|
currentMapperClass, currentModelClass, executeBatch, getBaseMapper, getEntityClass, getSqlStatement, removeBatchByIds, removeBatchByIds, removeById, removeById, removeByIds, retBool, saveBatch, saveBatchSomeColumn, saveOrUpdate, saveOrUpdateBatch, updateBatchByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBaseMapper, getById, getEntityClass, list, listByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeById, removeByIds, removeByIds, save, saveBatch, saveBatch, saveBatchSomeColumn, saveBatchSomeColumn, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, updateBatchById, updateBatchById, updateByIdpublic boolean deleteByUserId(Long userId)
deleteByUserId 在接口中 SysUserRoleServiceuserId - 用户ID@Transactional(rollbackFor=java.lang.Exception.class) public boolean updateUserRoles(@NonNull Long userId, @NonNull List<String> roleCodes)
updateUserRoles 在接口中 SysUserRoleServiceuserId - 用户IDroleCodes - 角色标识集合public boolean addUserRoles(@NonNull
Long userId,
@NonNull
List<String> roleCodes)
addUserRoles 在接口中 SysUserRoleServiceuserId - 用户IDroleCodes - 角色标识集合public List<SysRole> listRoles(Long userId)
listRoles 在接口中 SysUserRoleServiceuserId - 用户IDpublic com.hccake.ballcat.common.model.domain.PageResult<RoleBindUserVO> queryUserPageByRoleCode(com.hccake.ballcat.common.model.domain.PageParam pageParam, RoleBindUserQO roleBindUserQO)
queryUserPageByRoleCode 在接口中 SysUserRoleServicepageParam - 分页参数roleBindUserQO - 查询条件public boolean unbindRoleUser(Long userId, String roleCode)
unbindRoleUser 在接口中 SysUserRoleServiceuserId - 用户IDroleCode - 角色标识Copyright © 2023. All rights reserved.