@Service public class RoleServiceImpl extends com.baomidou.mybatisplus.service.impl.ServiceImpl<RoleMapper,Role> implements IRoleService
Constructor and Description |
---|
RoleServiceImpl() |
Modifier and Type | Method and Description |
---|---|
int |
deleteRolesById(Integer roleId)
删除某个角色的所有权限
|
void |
delRoleById(Integer roleId)
删除角色
|
List<ZTreeNode> |
roleTreeList()
获取角色列表树
|
List<ZTreeNode> |
roleTreeListByRoleId(String[] roleId)
获取角色列表树
|
List<Map<String,Object>> |
selectRoles(String condition)
根据条件查询角色列表
|
void |
setAuthority(Integer roleId,
String ids)
设置某个角色的权限
|
currentModelClass, delete, deleteBatchIds, deleteById, deleteByMap, insert, insertAllColumn, insertBatch, insertBatch, insertOrUpdate, insertOrUpdateAllColumn, insertOrUpdateAllColumnBatch, insertOrUpdateAllColumnBatch, insertOrUpdateBatch, insertOrUpdateBatch, retBool, selectBatchIds, selectById, selectByMap, selectCount, selectList, selectMap, selectMaps, selectMapsPage, selectObj, selectObjs, selectOne, selectPage, selectPage, sqlSessionBatch, sqlStatement, update, updateAllColumnBatchById, updateAllColumnBatchById, updateAllColumnById, updateBatchById, updateBatchById, updateById, updateForSet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, deleteBatchIds, deleteById, deleteByMap, insert, insertAllColumn, insertBatch, insertBatch, insertOrUpdate, insertOrUpdateAllColumn, insertOrUpdateAllColumnBatch, insertOrUpdateAllColumnBatch, insertOrUpdateBatch, insertOrUpdateBatch, selectBatchIds, selectById, selectByMap, selectCount, selectList, selectMap, selectMaps, selectMapsPage, selectObj, selectObjs, selectOne, selectPage, selectPage, update, updateAllColumnBatchById, updateAllColumnBatchById, updateAllColumnById, updateBatchById, updateBatchById, updateById, updateForSet
@Transactional public void setAuthority(Integer roleId, String ids)
IRoleService
setAuthority
in interface IRoleService
roleId
- 角色idids
- 权限的id@Transactional public void delRoleById(Integer roleId)
IRoleService
delRoleById
in interface IRoleService
public List<Map<String,Object>> selectRoles(String condition)
IRoleService
selectRoles
in interface IRoleService
public int deleteRolesById(Integer roleId)
IRoleService
deleteRolesById
in interface IRoleService
roleId
- 角色idpublic List<ZTreeNode> roleTreeList()
IRoleService
roleTreeList
in interface IRoleService
public List<ZTreeNode> roleTreeListByRoleId(String[] roleId)
IRoleService
roleTreeListByRoleId
in interface IRoleService
Copyright © 2018. All rights reserved.