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- MapperT- 实体
- 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
baseMapperFields inherited from class com.baomidou.mybatisplus.extension.repository.AbstractRepository
logFields inherited from interface com.baomidou.mybatisplus.extension.repository.IRepository
DEFAULT_BATCH_SIZE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.baomidou.mybatisplus.extension.repository.CrudRepository
getBaseMapper, getSqlStatement, saveBatch, saveOrUpdateBatch, updateBatchByIdMethods inherited from class com.baomidou.mybatisplus.extension.repository.AbstractRepository
executeBatch, executeBatch, getMap, getMapperClass, getObj, getOne, getOneOpt, getSqlSessionFactory, removeById, saveOrUpdateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, updateByIdMethods inherited from interface com.baomidou.mybatisplus.extension.service.IService
removeBatchByIds, saveBatch, saveOrUpdateBatch, updateBatchByIdMethods inherited from interface top.tangyh.basic.base.manager.SuperManager
saveBatchSomeColumn
-
Constructor Details
-
SuperManagerImpl
public SuperManagerImpl()
-
-
Method Details
-
getSuperMapper
-
getEntityClass
Description copied from interface:SuperManager获取实体的类型- Specified by:
getEntityClassin interfacecom.baomidou.mybatisplus.extension.repository.IRepository<M extends SuperMapper<T>>- Specified by:
getEntityClassin interfaceSuperManager<M extends SuperMapper<T>>- Overrides:
getEntityClassin classcom.baomidou.mybatisplus.extension.repository.AbstractRepository<M extends SuperMapper<T>,T>
-
updateAllById
Description copied from interface:SuperManager根据id修改 entity 的所有字段- Specified by:
updateAllByIdin interfaceSuperManager<M extends SuperMapper<T>>- Returns:
-