接口 RoleMapper

所有超级接口:
com.baomidou.mybatisplus.core.mapper.BaseMapper<Role>, com.baomidou.mybatisplus.core.mapper.Mapper<Role>

public interface RoleMapper extends com.baomidou.mybatisplus.core.mapper.BaseMapper<Role>
角色信息(role)表数据库访问层

提供角色的基础CRUD操作及分页模糊查询功能 支持按角色代码、名称、启用状态等条件分页查询

从以下版本开始:
2025/08/20
作者:
lishangbu
  • 方法概要

    修饰符和类型
    方法
    说明
    com.baomidou.mybatisplus.core.metadata.IPage<Role>
    selectPageByRole(com.baomidou.mybatisplus.core.metadata.IPage<Role> page, Role role)
    分页模糊查询角色列表

    从接口继承的方法 com.baomidou.mybatisplus.core.mapper.BaseMapper

    delete, deleteBatchIds, deleteById, deleteById, deleteById, deleteByIds, deleteByIds, deleteByMap, exists, insert, insert, insert, insertOrUpdate, insertOrUpdate, insertOrUpdate, insertOrUpdate, insertOrUpdate, selectBatchIds, selectBatchIds, selectById, selectByIds, selectByIds, selectByMap, selectByMap, selectCount, selectList, selectList, selectList, selectList, selectMaps, selectMaps, selectMaps, selectMaps, selectMapsPage, selectObjs, selectObjs, selectOne, selectOne, selectPage, update, update, updateById, updateById, updateById
  • 方法详细资料

    • selectPageByRole

      com.baomidou.mybatisplus.core.metadata.IPage<Role> selectPageByRole(com.baomidou.mybatisplus.core.metadata.IPage<Role> page, Role role)
      分页模糊查询角色列表

      支持按角色代码、名称、启用状态等条件进行模糊查询,结果按ID倒序排列

      参数:
      page - 分页参数,包含页码和每页大小
      role - 查询条件,包含角色代码、名称、启用状态等字段
      返回:
      角色分页数据,包含角色列表和分页信息