| 程序包 | 说明 |
|---|---|
| com.github.yulichang.extension.mapping.base | |
| com.github.yulichang.extension.mapping.config | |
| com.github.yulichang.extension.mapping.relation |
| 限定符和类型 | 方法和说明 |
|---|---|
default <R> T |
MPJDeepService.getByIdDeep(Serializable id,
DeepConfig<T> config)
针对可变参数堆污染提供的重载
list为null或空,会查询全部映射关系
例: selectByIdDeep(1, Arrays.asList(User::getId, ... ))
|
default <R> T |
MPJDeepService.getOneDeep(com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper,
DeepConfig<T> config)
针对可变参数堆污染提供的重载
list为null或空,会查询全部映射关系
例: selectOneDeep(queryWrapper, Arrays.asList(User::getId, ... ))
|
default <R,M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>> |
MPJRelationService.getRelation(java.util.function.Function<M,R> function,
DeepConfig<T> config)
通过注解实现单表多次查询
|
default <R> List<T> |
MPJDeepService.listByIdsDeep(Collection<? extends Serializable> idList,
DeepConfig<T> config)
针对可变参数堆污染提供的重载
list为null或空,会查询全部映射关系
例: selectBatchIdsDeep(idList, Arrays.asList(User::getId, ... ))
|
default <R> List<T> |
MPJDeepService.listByMapDeep(Map<String,Object> columnMap,
DeepConfig<T> config)
针对可变参数堆污染提供的重载
list为null或空,会查询全部映射关系
例: selectByMapDeep(columnMap, Arrays.asList(User::getId, ... ))
|
default <R> List<T> |
MPJDeepService.listDeep(com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper,
DeepConfig<T> config)
针对可变参数堆污染提供的重载
list为null或空,会查询全部映射关系
例: selectListDeep(queryWrapper, Arrays.asList(User::getId, ... ))
|
default <R,E extends com.baomidou.mybatisplus.core.metadata.IPage<T>> |
MPJDeepService.pageDeep(E page,
com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper,
DeepConfig<T> config)
针对可变参数堆污染提供的重载
list为null或空,会查询全部映射关系
例: selectPageDeep(page, queryWrapper, Arrays.asList(User::getId, ... ))
|
| 限定符和类型 | 方法和说明 |
|---|---|
DeepConfig<T> |
DeepConfig.Builder.build() |
static <T> DeepConfig<T> |
DeepConfig.defaultConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> List<T> |
Relation.list(List<T> data,
int currDeep,
DeepConfig<T> config) |
static <R,T,E> void |
Relation.mpjBindData(R t,
MPJTableFieldInfo fieldInfo,
List<?> joinList,
int currDeep,
DeepConfig<T> config) |
static <R,T> R |
Relation.mpjGetRelation(R r,
DeepConfig<T> config)
通过注解实现单表多次查询
|
static <T> T |
Relation.one(T t,
int currDeep,
DeepConfig<T> config)
查询映射关系
对结果进行二次查询 可以自行查询然后在通过此方法进行二次查询 list为null或空,会查询全部映射关系 |
Copyright © 2024. All rights reserved.