java.lang.Object
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M,T>
io.github.mangocrisp.spring.taybct.tool.core.bean.service.BaseServiceImpl<SysRoleMapper,SysRole>
io.github.mangocrisp.spring.taybct.module.system.service.impl.SysRoleServiceImpl
所有已实现的接口:
com.baomidou.mybatisplus.extension.service.IService<SysRole>, ISysRoleService, io.github.mangocrisp.spring.taybct.tool.core.bean.service.IBaseService<SysRole>

public class SysRoleServiceImpl extends io.github.mangocrisp.spring.taybct.tool.core.bean.service.BaseServiceImpl<SysRoleMapper,SysRole> implements ISysRoleService
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    (专用程序包) io.github.mangocrisp.spring.taybct.tool.core.constant.ISysParamsObtainService
     
    (专用程序包) ISysRolePermissionService
     
    (专用程序包) SysUserRoleMapper
     

    从类继承的字段 io.github.mangocrisp.spring.taybct.tool.core.bean.service.BaseServiceImpl

    securityUtil

    从类继承的字段 com.baomidou.mybatisplus.extension.service.impl.ServiceImpl

    baseMapper, entityClass, mapperClass, typeArguments

    从接口继承的字段 com.baomidou.mybatisplus.extension.service.IService

    DEFAULT_BATCH_SIZE
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    <E> Collection<E>
     
     
    com.baomidou.mybatisplus.core.metadata.IPage<SysRole>
     
    private void
    getSysRoles(SysRoleQueryDTO dto, Map<String,Object> sqlQueryParams, Long current, Long size, BiConsumer<Long,List<SysRole>> result)
    获取用户,如果不传分页参数,就不分页
    取角色列表(过滤出只有当前登录角色拥有的)
    boolean
     
    boolean
     
    boolean
    save(SysRole entity)
     
    boolean
     
    boolean
     
    boolean
     

    从类继承的方法 io.github.mangocrisp.spring.taybct.tool.core.bean.service.BaseServiceImpl

    authoritiesFilter, checkAuthorities, checkRoot, currentMapperClass, currentModelClass, getSecurityUtil, saveNew, saveNewBatch

    从类继承的方法 com.baomidou.mybatisplus.extension.service.impl.ServiceImpl

    closeSqlSession, executeBatch, executeBatch, executeBatch, getBaseMapper, getEntityClass, getMap, getObj, getOne, getOneOpt, getSqlSessionFactory, getSqlStatement, removeBatchByIds, removeBatchByIds, removeById, retBool, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, updateBatchById

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 io.github.mangocrisp.spring.taybct.tool.core.bean.service.IBaseService

    customizeGetById, customizeList, customizePage, customizeQueryPage, customizeQueryPage, customizeQueryWrapper, customizeQueryWrapper, customizeRemoveById, customizeRemoveByIds, customizeSave, customizeSaveBatch, customizeUpdateBatchById, customizeUpdateById, mergeQueryExpansion, queryExpansion, removeExpansion, saveExpansion

    从接口继承的方法 com.baomidou.mybatisplus.extension.service.IService

    count, count, exists, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, getOneOpt, getOneOpt, getOptById, ktQuery, ktUpdate, lambdaQuery, lambdaQuery, lambdaUpdate, list, list, list, list, listByIds, listByMap, listMaps, listMaps, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeByIds, removeByMap, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById
  • 字段详细资料

    • sysRolePermissionService

      ISysRolePermissionService sysRolePermissionService
    • sysUserRoleMapper

      @Autowired SysUserRoleMapper sysUserRoleMapper
    • sysParamsObtainService

      io.github.mangocrisp.spring.taybct.tool.core.constant.ISysParamsObtainService sysParamsObtainService
  • 构造器详细资料

    • SysRoleServiceImpl

      public SysRoleServiceImpl()
  • 方法详细资料

    • customizeList

      public List<SysRole> customizeList(Map<String,Object> params)
      指定者:
      customizeList 在接口中 io.github.mangocrisp.spring.taybct.tool.core.bean.service.IBaseService<SysRole>
    • customizePage

      public com.baomidou.mybatisplus.core.metadata.IPage<SysRole> customizePage(Map<String,Object> params)
      指定者:
      customizePage 在接口中 io.github.mangocrisp.spring.taybct.tool.core.bean.service.IBaseService<SysRole>
    • getSysRoles

      private void getSysRoles(SysRoleQueryDTO dto, Map<String,Object> sqlQueryParams, Long current, Long size, BiConsumer<Long,List<SysRole>> result)
      获取用户,如果不传分页参数,就不分页
      参数:
      dto - 查询参数
      sqlQueryParams - sql 查询参数
      current - 当前页码
      size - 页面大小
      result - 返回结果,因为会返回 总数 和 列表,所以这里是一个 BiConsumer
      从以下版本开始:
      1.0.4
      另请参阅:
    • save

      public boolean save(SysRole entity)
      指定者:
      save 在接口中 com.baomidou.mybatisplus.extension.service.IService<SysRole>
    • saveBatch

      public boolean saveBatch(Collection<SysRole> entityList)
      指定者:
      saveBatch 在接口中 com.baomidou.mybatisplus.extension.service.IService<SysRole>
    • updateById

      public boolean updateById(SysRole entity)
      指定者:
      updateById 在接口中 com.baomidou.mybatisplus.extension.service.IService<SysRole>
    • updateBatchById

      public boolean updateBatchById(Collection<SysRole> entityList)
      指定者:
      updateBatchById 在接口中 com.baomidou.mybatisplus.extension.service.IService<SysRole>
    • removeById

      public boolean removeById(Serializable id)
      指定者:
      removeById 在接口中 com.baomidou.mybatisplus.extension.service.IService<SysRole>
      覆盖:
      removeById 在类中 com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<SysRoleMapper,SysRole>
    • removeByIds

      public boolean removeByIds(Collection<?> idList)
      指定者:
      removeByIds 在接口中 com.baomidou.mybatisplus.extension.service.IService<SysRole>
      覆盖:
      removeByIds 在类中 com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<SysRoleMapper,SysRole>
    • checkRemoveCondition

      public <E> Collection<E> checkRemoveCondition(Collection<E> idList)
    • listFilterRole

      public List<SysRole> listFilterRole(SysRole dto)
      从接口复制的说明: ISysRoleService
      取角色列表(过滤出只有当前登录角色拥有的)
      指定者:
      listFilterRole 在接口中 ISysRoleService
      参数:
      dto - 请求参数
      返回:
      过滤后的角色列表