public class BaseServiceImpl<T extends BaseMapper<M>,M> extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<T,M> implements BaseService<M>
| 构造器和说明 |
|---|
BaseServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
List<M> |
customList(M m)
自定义查询 实体 M
需要自己写sql
|
List<M> |
customList(Map<String,Object> param)
自定义查询 Map 参数
需要自己写sql
|
com.baomidou.mybatisplus.core.metadata.IPage<M> |
customPage(PageRequest<M> pageRequest)
自定义分页查询
需要自己写sql
|
Boolean |
insertBatch(List<M> list)
自定义批量插入
|
closeSqlSession, count, currentModelClass, executeBatch, getBaseMapper, getById, getMap, getObj, getOne, list, listByIds, listByMap, listMaps, listObjs, page, pageMaps, remove, removeById, removeByIds, removeByMap, retBool, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, update, updateBatchById, updateByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, count, getBaseMapper, getById, getMap, getObj, getOne, getOne, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateByIdpublic List<M> customList(M m)
BaseServicecustomList 在接口中 BaseService<M>public List<M> customList(Map<String,Object> param)
BaseServicecustomList 在接口中 BaseService<M>public com.baomidou.mybatisplus.core.metadata.IPage<M> customPage(PageRequest<M> pageRequest)
BaseServicecustomPage 在接口中 BaseService<M>public Boolean insertBatch(List<M> list)
BaseServiceinsertBatch 在接口中 BaseService<M>Copyright © 2020. All rights reserved.