java.lang.Object
com.github.yulichang.extension.mapping.relation.Relation

public class Relation extends Object
  • Constructor Details

    • Relation

      public Relation()
  • Method Details

    • mpjGetRelation

      public static <R, T> R mpjGetRelation(R r, DeepConfig<T> config)
      通过注解实现单表多次查询
      Parameters:
      r - BaseMapper执行结果
      config - 映射配置
      See Also:
      • EntityMapping
      • FieldMapping
    • list

      public static <T> List<T> list(List<T> data, int currDeep, DeepConfig<T> config)
    • one

      public static <T> T one(T t, int currDeep, DeepConfig<T> config)
      查询映射关系
      对结果进行二次查询
      可以自行查询然后在通过此方法进行二次查询
      list为null或空,会查询全部映射关系
      Parameters:
      t - 第一次查询结果
    • mpjBindData

      public static <R, T, E> void mpjBindData(R t, MPJTableFieldInfo fieldInfo, List<?> joinList, int currDeep, DeepConfig<T> config)