接口 IBaseService<T>
- 所有超级接口:
com.baomidou.mybatisplus.extension.service.IService<T>
- 所有已知实现类:
BaseServiceImpl
public interface IBaseService<T>
extends com.baomidou.mybatisplus.extension.service.IService<T>
-
字段概要
从接口继承的字段 com.baomidou.mybatisplus.extension.service.IService
DEFAULT_BATCH_SIZE -
方法概要
修饰符和类型方法说明default T根据 ID 查询 检查数据合法性default voidcheckExists(boolean condition, Supplier<com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper<T>> supplier, String message) 校验指定条件是否存在default voidcheckExists(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- 查询条件 LambdaQueryWrappermessage- 存在提示
-
checkById
根据 ID 查询 检查数据合法性- 参数:
id- 主键ID- 返回:
-