public class VoServiceImpl<M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>,T>
extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M,T>
| Constructor and Description |
|---|
VoServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
getById(Serializable id,
Function<? super T,? extends R> action)
通过主键ID查询实体VO
|
<R> R |
getOne(com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper,
Function<? super T,? extends R> action)
通过唯一索引查询
|
<R> List<R> |
list(Function<? super T,? extends R> action)
查询实体并转化为实体VO
|
<R> List<R> |
list(com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper,
Function<? super T,? extends R> action)
查询实体并转化为实体VO
|
<R> List<R> |
listByIds(Collection<? extends Serializable> idList,
Function<? super T,? extends R> action)
通过主键ID集合查询,并将实体集合映射为其它类型集合,比如VO
|
<E extends com.baomidou.mybatisplus.core.metadata.IPage<T>,R> |
page(E page,
Function<? super T,? extends R> action)
分页查询实体并转化为实体VO
|
<E extends com.baomidou.mybatisplus.core.metadata.IPage<T>,R> |
page(E page,
com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper,
Function<? super T,? extends R> action)
分页查询实体并转化为实体VO
|
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, waitcount, count, getById, 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, saveOrUpdate, saveOrUpdateBatch, update, update, update, updateBatchById, updateByIdpublic <R> R getById(Serializable id, Function<? super T,? extends R> action)
R - 转化后实体VO的泛型id - 主键IDaction - 转换规则public <R> R getOne(com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper, Function<? super T,? extends R> action)
R - 转化后实体VO的泛型queryWrapper - 查询条件action - 转换规则public <E extends com.baomidou.mybatisplus.core.metadata.IPage<T>,R> com.baomidou.mybatisplus.core.metadata.IPage<R> page(E page, com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper, Function<? super T,? extends R> action)
E - 分页对象泛型R - 实体VO分页对象泛型page - 分页对象queryWrapper - 查询条件action - 转换规则public <E extends com.baomidou.mybatisplus.core.metadata.IPage<T>,R> com.baomidou.mybatisplus.core.metadata.IPage<R> page(E page, Function<? super T,? extends R> action)
E - 分页对象泛型R - 实体VO分页对象泛型page - 分页对象action - 转换规则public <R> List<R> listByIds(Collection<? extends Serializable> idList, Function<? super T,? extends R> action)
R - 转换后的泛型类(通常为实体的子类)idList - 主键ID集合action - 转换规则public <R> List<R> list(com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper, Function<? super T,? extends R> action)
R - 转换后的泛型类(通常为实体的子类)queryWrapper - 查询条件action - 转换规则Copyright © 2021. All rights reserved.