接口 IBaseService<T>

所有超级接口:
com.baomidou.mybatisplus.extension.repository.IRepository<T>, com.baomidou.mybatisplus.extension.service.IService<T>
所有已知子接口:
AppVersionService, CodeGeneratorService, DataSourceService, IAddressService, IAdvertService, IAppService, IArticleCategoryService, IArticleService, IDeptService, IDictDataService, IMessageService, IOrderService, IPostService, IUserDetailService, IWxUserBindService, LoginLogService
所有已知实现类:
AddressServiceImpl, AdvertServiceImpl, AppServiceImpl, AppVersionServiceImpl, ArticleCategoryServiceImpl, ArticleServiceImpl, BaseServiceImpl, CodeGeneratorServiceImpl, DataSourceServiceImpl, DeptServiceImpl, DictDataServiceImpl, LoginLogServiceImpl, MessageServiceImpl, OrderServiceImpl, PostServiceImpl, UserDetailServiceImpl, WxUserBindServiceImpl

public interface IBaseService<T> extends com.baomidou.mybatisplus.extension.service.IService<T>
Author: dongzp Time: 2019/6/22 11:57 Project: xbaseweb-plus Email: 90fanhua@gmail.com Remarks:
  • 字段概要

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

    DEFAULT_BATCH_SIZE
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    save(T entity)
    保存
    boolean
    saveBatch(Collection<T> entityList, int batchSize)
    批量保存
    boolean
    saveOrUpdate(T entity)
    保存或更新
    boolean
    saveOrUpdateBatch(Collection<T> entityList, int batchSize)
    批量保存或更新
    boolean
    updateBatchById(Collection<T> entityList, int batchSize)
    批量更新
    boolean
    updateById(T entity)
    更新

    从接口继承的方法 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, update, update, update

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

    removeBatchByIds, saveBatch, saveOrUpdateBatch, updateBatchById
  • 方法详细资料

    • save

      boolean save(T entity)
      保存
      指定者:
      save 在接口中 com.baomidou.mybatisplus.extension.repository.IRepository<T>
      参数:
      entity -
      返回:
    • saveBatch

      boolean saveBatch(Collection<T> entityList, int batchSize)
      批量保存
      指定者:
      saveBatch 在接口中 com.baomidou.mybatisplus.extension.repository.IRepository<T>
      参数:
      entityList -
      batchSize -
      返回:
    • updateById

      boolean updateById(T entity)
      更新
      指定者:
      updateById 在接口中 com.baomidou.mybatisplus.extension.repository.IRepository<T>
      参数:
      entity -
      返回:
    • updateBatchById

      boolean updateBatchById(Collection<T> entityList, int batchSize)
      批量更新
      指定者:
      updateBatchById 在接口中 com.baomidou.mybatisplus.extension.repository.IRepository<T>
      参数:
      entityList -
      batchSize -
      返回:
    • saveOrUpdate

      boolean saveOrUpdate(T entity)
      保存或更新
      指定者:
      saveOrUpdate 在接口中 com.baomidou.mybatisplus.extension.repository.IRepository<T>
      参数:
      entity -
      返回:
    • saveOrUpdateBatch

      boolean saveOrUpdateBatch(Collection<T> entityList, int batchSize)
      批量保存或更新
      指定者:
      saveOrUpdateBatch 在接口中 com.baomidou.mybatisplus.extension.repository.IRepository<T>
      参数:
      entityList -
      batchSize -
      返回: