接口 IUserRoleService

所有超级接口:
IBaseService<UserRole>, com.baomidou.mybatisplus.extension.repository.IRepository<UserRole>
所有已知实现类:
IUserRoleServiceImpl

@CacheConfig(cacheNames="userRole") public interface IUserRoleService extends IBaseService<UserRole>
用户角色接口

尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负

作者:
Yazhi Li
  • 字段概要

    从接口继承的字段 com.baomidou.mybatisplus.extension.repository.IRepository

    DEFAULT_BATCH_SIZE
  • 方法概要

    修饰符和类型
    方法
    说明
    通过用户id获取
    通过用户id获取用户角色关联的部门数据
    通过角色ID列表获得用户列表

    从接口继承的方法 plus.hiver.common.config.mybatisplus.service.IBaseService

    checkById, checkExists, checkExists, saveBatch

    从接口继承的方法 com.baomidou.mybatisplus.extension.repository.IRepository

    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, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, update, update, update, updateBatchById, updateById
  • 方法详细资料

    • findByUserId

      @Cacheable(key="#userId") List<Role> findByUserId(Long userId)
      通过用户id获取
    • findDepIdsByUserId

      List<Long> findDepIdsByUserId(Long userId)
      通过用户id获取用户角色关联的部门数据
    • listbyRoleIds

      List<Long> listbyRoleIds(List<Long> roleIds)
      通过角色ID列表获得用户列表