@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, updateForSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, 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)
IRoleServicesetAuthority in interface IRoleServiceroleId - 角色idids - 权限的id@Transactional public void delRoleById(Integer roleId)
IRoleServicedelRoleById in interface IRoleServicepublic List<Map<String,Object>> selectRoles(String condition)
IRoleServiceselectRoles in interface IRoleServicepublic int deleteRolesById(Integer roleId)
IRoleServicedeleteRolesById in interface IRoleServiceroleId - 角色idpublic List<ZTreeNode> roleTreeList()
IRoleServiceroleTreeList in interface IRoleServicepublic List<ZTreeNode> roleTreeListByRoleId(String[] roleId)
IRoleServiceroleTreeListByRoleId in interface IRoleServiceCopyright © 2018. All rights reserved.