public class BaseServiceImpl<M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>,T extends com.baomidou.mybatisplus.extension.activerecord.Model<T>> extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M,T> implements IBaseService<T>
| Constructor and Description |
|---|
BaseServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
default <R,A> R |
collect(Collector<? super T,A,R> collector)
查询集合转化为Map
|
default <R,A> R |
collect(com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper,
Collector<? super T,A,R> collector)
查询集合转化为Map
默认使用主键作为key的转换规则
集合元素实体作为转换规则
|
default <R,A> R |
collectByIds(Collection<? extends Serializable> idList,
Collector<? super T,A,R> collector)
查询集合转化为Map
|
closeSqlSession, currentMapperClass, currentModelClass, executeBatch, executeBatch, executeBatch, getBaseMapper, getEntityClass, getMap, getObj, getOne, getSqlStatement, retBool, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, updateBatchByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetById, getOne, list, list, listByIds, map, map, mapByIds, page, pagecount, count, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, ktQuery, ktUpdate, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeById, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateByIdpublic <R,A> R collectByIds(Collection<? extends Serializable> idList, Collector<? super T,A,R> collector)
R - 目标类泛型A - the mutable accumulation type of the reduction operation (often hidden as an implementation detail)idList - 主键ID集合collector - 收集器public <R,A> R collect(com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper,
Collector<? super T,A,R> collector)
R - 目标类泛型A - the mutable accumulation type of the reduction operation (often hidden as an implementation detail)queryWrapper - 查询条件collector - 收集器public <R,A> R collect(Collector<? super T,A,R> collector)
R - 目标类泛型A - the mutable accumulation type of the reduction operation (often hidden as an implementation detail)collector - 收集器Copyright © 2021. All rights reserved.