public class Relation extends Object
| 构造器和说明 |
|---|
Relation() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> List<T> |
list(List<T> data,
int currDeep,
DeepConfig<T> config) |
static <R,T,E> void |
mpjBindData(R t,
MPJTableFieldInfo fieldInfo,
List<?> joinList,
int currDeep,
DeepConfig<T> config) |
static <R,T> R |
mpjGetRelation(R r,
DeepConfig<T> config)
通过注解实现单表多次查询
|
static <T> T |
one(T t,
int currDeep,
DeepConfig<T> config)
查询映射关系
对结果进行二次查询 可以自行查询然后在通过此方法进行二次查询 list为null或空,会查询全部映射关系 |
public static <R,T> R mpjGetRelation(R r,
DeepConfig<T> config)
r - BaseMapper执行结果config - 映射配置EntityMapping,
FieldMappingpublic static <T> List<T> list(List<T> data, int currDeep, DeepConfig<T> config)
public static <T> T one(T t,
int currDeep,
DeepConfig<T> config)
t - 第一次查询结果public static <R,T,E> void mpjBindData(R t,
MPJTableFieldInfo fieldInfo,
List<?> joinList,
int currDeep,
DeepConfig<T> config)
Copyright © 2024. All rights reserved.