接口 IBaseService<T>

所有超级接口:
com.baomidou.mybatisplus.extension.service.IService<T>
所有已知实现类:
BaseServiceImpl

public interface IBaseService<T> extends com.baomidou.mybatisplus.extension.service.IService<T>
---------------------------------------- 自定义 Service 基类
从以下版本开始:
2021-10-28
  • 字段概要

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

    DEFAULT_BATCH_SIZE
  • 方法概要

    修饰符和类型
    方法
    说明
    default T
    根据 ID 查询 检查数据合法性
    default void
    checkExists(boolean condition, Supplier<com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper<T>> supplier, String message)
    校验指定条件是否存在
    default void
    checkExists(com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper<T> lqw, String message)
    校验指定条件是否存在

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

    count, count, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, ktQuery, ktUpdate, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateById
  • 方法详细资料

    • checkExists

      default void checkExists(boolean condition, Supplier<com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper<T>> supplier, String message)
      校验指定条件是否存在
      参数:
      condition - 判断条件
      supplier - 查询条件
      message - 存在提示
    • checkExists

      default void checkExists(com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper<T> lqw, String message)
      校验指定条件是否存在
      参数:
      lqw - 查询条件 LambdaQueryWrapper
      message - 存在提示
    • checkById

      default T checkById(Long id)
      根据 ID 查询 检查数据合法性
      参数:
      id - 主键ID
      返回: