类 BaseServiceImpl<M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<E>,E extends T,T>

java.lang.Object
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M,E>
cn.iosd.starter.datasource.base.BaseServiceImpl<M,E,T>
类型参数:
T - 实体
所有已实现的接口:
ICrudService<T>, com.baomidou.mybatisplus.extension.service.IService<E>

@Primary @Component public class BaseServiceImpl<M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<E>,E extends T,T> extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M,E> implements ICrudService<T>
单表CURD服务DB实现类
作者:
ok1996
  • 字段概要

    从类继承的字段 com.baomidou.mybatisplus.extension.service.impl.ServiceImpl

    baseMapper, entityClass, log, mapperClass, typeArguments

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

    DEFAULT_BATCH_SIZE
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    apiCount(T req)
     
     
    apiList(T req)
     
     
    apiSave(T entity)
     
    apiUpdateById(Long id, T entity)
     

    从类继承的方法 com.baomidou.mybatisplus.extension.service.impl.ServiceImpl

    closeSqlSession, currentMapperClass, currentModelClass, executeBatch, executeBatch, executeBatch, getBaseMapper, getEntityClass, getMap, getObj, getOne, getOneOpt, getSqlSessionFactory, getSqlStatement, removeBatchByIds, removeBatchByIds, removeById, removeById, removeByIds, retBool, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, updateBatchById

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

    count, count, exists, getById, getOne, 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, removeBatchByIds, removeBatchByIds, removeById, removeByIds, removeByMap, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, update, update, update, updateBatchById, updateById
  • 构造器详细资料

    • BaseServiceImpl

      public BaseServiceImpl()
  • 方法详细资料

    • apiSave

      public T apiSave(T entity)
      指定者:
      apiSave 在接口中 ICrudService<M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<E>>
    • apiUpdateById

      public T apiUpdateById(Long id, T entity)
      指定者:
      apiUpdateById 在接口中 ICrudService<M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<E>>
    • apiRemoveById

      public Boolean apiRemoveById(Long id)
      指定者:
      apiRemoveById 在接口中 ICrudService<M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<E>>
    • apiGetById

      public T apiGetById(Long id)
      指定者:
      apiGetById 在接口中 ICrudService<M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<E>>
    • apiList

      public List<T> apiList(T req)
      指定者:
      apiList 在接口中 ICrudService<M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<E>>
    • apiCount

      public Long apiCount(T req)
      指定者:
      apiCount 在接口中 ICrudService<M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<E>>