@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, setPageParamcloseSqlSession, 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, updateByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, 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
SysRoleServicesaveSysRole in interface SysRoleServiceException@Transactional(rollbackFor=java.lang.Exception.class) public boolean updateSysRole(UpdateSysRoleParam updateSysRoleParam) throws Exception
SysRoleServiceupdateSysRole in interface SysRoleServiceException@Transactional(rollbackFor=java.lang.Exception.class) public boolean deleteSysRole(Long id) throws Exception
SysRoleServicedeleteSysRole in interface SysRoleServiceExceptionpublic SysRoleQueryVo getSysRoleById(Serializable id) throws Exception
SysRoleServicegetSysRoleById in interface SysRoleServiceExceptionpublic Paging<SysRoleQueryVo> getSysRolePageList(SysRoleQueryParam sysRoleQueryParam) throws Exception
SysRoleServicegetSysRolePageList in interface SysRoleServiceExceptionpublic boolean isEnableSysRole(Long id) throws Exception
SysRoleServiceisEnableSysRole in interface SysRoleServiceExceptionpublic boolean isExistsByCode(String code) throws Exception
SysRoleServiceisExistsByCode in interface SysRoleServiceExceptionCopyright © 2019. All rights reserved.