refactor(X-Pack): 数据同步任务的调度,统一使用Quartz

This commit is contained in:
jianneng-fit2cloud
2025-08-29 12:50:29 +08:00
parent 9df2e5e7e8
commit bfabc8bc4b
3 changed files with 46 additions and 0 deletions

View File

@@ -21,4 +21,19 @@ public class Source {
private List<TableField> fieldList;
private String incrementField;
private String esQuery;
public Source() {
}
public Source(Source source) {
this.type = source.type;
this.query = source.query;
this.tables = source.tables;
this.datasource = source.datasource;
this.datasourceId = source.datasourceId;
this.tableExtract = source.tableExtract;
this.fieldList = source.fieldList;
this.incrementField = source.incrementField;
this.esQuery = source.esQuery;
}
}

View File

@@ -26,4 +26,25 @@ public class Target {
private String remarks;
private Long incrementOffset;
private String incrementOffsetUnit;
public Target() {
}
public Target(Target target) {
this.type = target.type;
this.createTable = target.createTable;
this.fieldList = target.fieldList;
this.tableName = target.tableName;
this.datasource = target.datasource;
this.datasourceId = target.datasourceId;
this.targetProperty = target.targetProperty;
this.incrementSync = target.incrementSync;
this.incrementField = target.incrementField;
this.datasourceVersion = target.datasourceVersion;
this.faultToleranceRate = target.faultToleranceRate;
this.incrementFieldType = target.incrementFieldType;
this.remarks = target.remarks;
this.incrementOffset = target.incrementOffset;
this.incrementOffsetUnit = target.incrementOffsetUnit;
}
}