Class SuperManagerImpl<M extends SuperMapper<T>,T>

java.lang.Object
com.baomidou.mybatisplus.extension.repository.AbstractRepository<M,T>
com.baomidou.mybatisplus.extension.repository.CrudRepository<M,T>
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M,T>
top.tangyh.basic.base.manager.impl.SuperManagerImpl<M,T>
Type Parameters:
M - Mapper
T - 实体
All Implemented Interfaces:
com.baomidou.mybatisplus.extension.repository.IRepository<T>, com.baomidou.mybatisplus.extension.service.IService<T>, SuperManager<T>
Direct Known Subclasses:
SuperCacheManagerImpl

public class SuperManagerImpl<M extends SuperMapper<T>,T> extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M,T> implements SuperManager<T>
不含缓存的Service实现

2,removeById:重写 ServiceImpl 类的方法,删除db 3,removeByIds:重写 ServiceImpl 类的方法,删除db 4,updateAllById: 新增的方法: 修改数据(所有字段) 5,updateById:重写 ServiceImpl 类的方法,修改db后

Author:
zuihou
  • Field Summary

    Fields inherited from class com.baomidou.mybatisplus.extension.repository.CrudRepository

    baseMapper

    Fields inherited from class com.baomidou.mybatisplus.extension.repository.AbstractRepository

    log

    Fields inherited from interface com.baomidou.mybatisplus.extension.repository.IRepository

    DEFAULT_BATCH_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    获取实体的类型
     
    boolean
    根据id修改 entity 的所有字段

    Methods inherited from class com.baomidou.mybatisplus.extension.repository.CrudRepository

    getBaseMapper, getSqlStatement, saveBatch, saveOrUpdateBatch, updateBatchById

    Methods inherited from class com.baomidou.mybatisplus.extension.repository.AbstractRepository

    executeBatch, executeBatch, getMap, getMapperClass, getObj, getOne, getOneOpt, getSqlSessionFactory, removeById, saveOrUpdate

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.baomidou.mybatisplus.extension.repository.IRepository

    count, count, exists, getBaseMapper, getById, 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, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, update, update, update, updateBatchById, updateById

    Methods inherited from interface com.baomidou.mybatisplus.extension.service.IService

    removeBatchByIds, saveBatch, saveOrUpdateBatch, updateBatchById

    Methods inherited from interface top.tangyh.basic.base.manager.SuperManager

    saveBatchSomeColumn
  • Constructor Details

    • SuperManagerImpl

      public SuperManagerImpl()
  • Method Details

    • getSuperMapper

      public SuperMapper getSuperMapper()
    • getEntityClass

      public Class<T> getEntityClass()
      Description copied from interface: SuperManager
      获取实体的类型
      Specified by:
      getEntityClass in interface com.baomidou.mybatisplus.extension.repository.IRepository<M extends SuperMapper<T>>
      Specified by:
      getEntityClass in interface SuperManager<M extends SuperMapper<T>>
      Overrides:
      getEntityClass in class com.baomidou.mybatisplus.extension.repository.AbstractRepository<M extends SuperMapper<T>,T>
    • updateAllById

      public boolean updateAllById(T model)
      Description copied from interface: SuperManager
      根据id修改 entity 的所有字段
      Specified by:
      updateAllById in interface SuperManager<M extends SuperMapper<T>>
      Returns: