|
|
|
@ -14,7 +14,7 @@ import lombok.NoArgsConstructor;
|
|
|
|
|
@Data
|
|
|
|
|
@AllArgsConstructor
|
|
|
|
|
@NoArgsConstructor
|
|
|
|
|
public class MappingItem {
|
|
|
|
|
public class MappingItem implements Comparable<MappingItem> {
|
|
|
|
|
/**
|
|
|
|
|
* 来源字段名称
|
|
|
|
|
*/
|
|
|
|
@ -38,6 +38,11 @@ public class MappingItem {
|
|
|
|
|
*/
|
|
|
|
|
public Object defaultValue;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 字段的顺序号
|
|
|
|
|
*/
|
|
|
|
|
public int seq;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String toString() {
|
|
|
|
|
return "srcName:"
|
|
|
|
@ -45,6 +50,12 @@ public class MappingItem {
|
|
|
|
|
+ this.destBeanName + ", destName"
|
|
|
|
|
+ this.destName + ", defaultValue:"
|
|
|
|
|
+ this.defaultValue + ", destPk:"
|
|
|
|
|
+ this.destPk;
|
|
|
|
|
+ this.destPk + ", seq:"
|
|
|
|
|
+ this.seq;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public int compareTo(MappingItem o) {
|
|
|
|
|
return this.seq - o.seq;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|