public interface MPJRelationService<T>
extends com.baomidou.mybatisplus.extension.service.IService<T>
对配置了映射注解的字段进行查询 目前查询深度只支持2级(只解析当前实体类的映射注解,不会对查询结果再次解析注解) 多级查询可能存在循环引用的问题,也可能会导致全量查询 用于替换deep
EntityMapping,
FieldMapping| 限定符和类型 | 方法和说明 |
|---|---|
default <R,M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>> |
getRelation(java.util.function.Function<M,R> function)
通过注解实现单表多次查询
|
default <R,M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>> |
getRelation(java.util.function.Function<M,R> function,
DeepConfig<T> config)
通过注解实现单表多次查询
|
default <R,M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>> |
getRelation(java.util.function.Function<M,R> function,
java.util.function.Function<DeepConfig.Builder<T>,DeepConfig.Builder<T>> config)
通过注解实现单表多次查询
|
count, count, exists, getBaseMapper, getById, getEntityClass, 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, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateByIddefault <R,M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>> R getRelation(java.util.function.Function<M,R> function)
function - BaseMapper调用方法EntityMapping,
FieldMappingdefault <R,M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>> R getRelation(java.util.function.Function<M,R> function, DeepConfig<T> config)
function - BaseMapper调用方法EntityMapping,
FieldMappingdefault <R,M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>> R getRelation(java.util.function.Function<M,R> function, java.util.function.Function<DeepConfig.Builder<T>,DeepConfig.Builder<T>> config)
function - BaseMapper调用方法config - 映射配置EntityMapping,
FieldMappingCopyright © 2024. All rights reserved.