@Service public class SysRoleServiceImpl extends BaseServiceImpl<SysRoleMapper,SysRole> implements SysRoleService
系统角色 服务实现类
Constructor and Description |
---|
SysRoleServiceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
deleteSysRole(Long id)
删除
|
SysRoleQueryVo |
getSysRoleById(Serializable id)
根据ID获取查询对象
|
Paging<SysRoleQueryVo> |
getSysRolePageList(SysRoleQueryParam sysRoleQueryParam)
获取分页对象
|
boolean |
isEnableSysRole(Long id)
根据id校验角色是否存在并且已启用
|
boolean |
isExistsByCode(String code)
判断角色编码是否存在
|
boolean |
saveSysRole(AddSysRoleParam addSysRoleParam)
保存
|
boolean |
updateSysRole(UpdateSysRoleParam updateSysRoleParam)
修改
|
setPageParam, setPageParam
closeSqlSession, count, currentModelClass, getBaseMapper, getById, getMap, getObj, getOne, list, listByIds, listByMap, listMaps, listObjs, page, pageMaps, remove, removeById, removeByIds, removeByMap, retBool, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, update, updateBatchById, updateById
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
count, count, getBaseMapper, getById, getMap, getObj, getOne, getOne, 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
@Transactional(rollbackFor=java.lang.Exception.class) public boolean saveSysRole(AddSysRoleParam addSysRoleParam) throws Exception
SysRoleService
saveSysRole
in interface SysRoleService
Exception
@Transactional(rollbackFor=java.lang.Exception.class) public boolean updateSysRole(UpdateSysRoleParam updateSysRoleParam) throws Exception
SysRoleService
updateSysRole
in interface SysRoleService
Exception
@Transactional(rollbackFor=java.lang.Exception.class) public boolean deleteSysRole(Long id) throws Exception
SysRoleService
deleteSysRole
in interface SysRoleService
Exception
public SysRoleQueryVo getSysRoleById(Serializable id) throws Exception
SysRoleService
getSysRoleById
in interface SysRoleService
Exception
public Paging<SysRoleQueryVo> getSysRolePageList(SysRoleQueryParam sysRoleQueryParam) throws Exception
SysRoleService
getSysRolePageList
in interface SysRoleService
Exception
public boolean isEnableSysRole(Long id) throws Exception
SysRoleService
isEnableSysRole
in interface SysRoleService
Exception
public boolean isExistsByCode(String code) throws Exception
SysRoleService
isExistsByCode
in interface SysRoleService
Exception
Copyright © 2019. All rights reserved.