feat: 重构数据中枢工作台与接入管理

- 新增统一的数据源、目录、纳管表与 Excel 处理后端能力

- 重建管理端数据中枢工作台并替换旧表管理页面

- 补充数据中枢迁移脚本、连接器底座与说明字段支持
This commit is contained in:
2026-04-02 18:55:31 +08:00
parent b6213d0933
commit 798effbd5b
117 changed files with 9739 additions and 1824 deletions

View File

@@ -33,6 +33,18 @@ public class DatacenterTableBase extends DateEntity implements Serializable {
@Column(tenantId = true, comment = "租户ID")
private BigInteger tenantId;
/**
* 数据源ID
*/
@Column(comment = "数据源ID")
private BigInteger sourceId;
/**
* 目录ID
*/
@Column(comment = "目录ID")
private BigInteger catalogId;
/**
* 数据表名
*/
@@ -51,6 +63,30 @@ public class DatacenterTableBase extends DateEntity implements Serializable {
@Column(comment = "物理表名")
private String actualTable;
/**
* 表类型
*/
@Column(comment = "表类型")
private String tableKind;
/**
* 访问模式
*/
@Column(comment = "访问模式")
private String accessMode;
/**
* 物化表名
*/
@Column(comment = "物化表名")
private String materializedTable;
/**
* 是否开启版本
*/
@Column(comment = "是否开启版本")
private Integer versioningEnabled;
/**
* 数据状态
*/
@@ -87,6 +123,12 @@ public class DatacenterTableBase extends DateEntity implements Serializable {
@Column(typeHandler = FastjsonTypeHandler.class, comment = "扩展项")
private Map<String, Object> options;
/**
* 能力声明
*/
@Column(typeHandler = FastjsonTypeHandler.class, comment = "能力声明")
private Map<String, Object> capabilitiesJson;
public BigInteger getId() {
return id;
}
@@ -111,6 +153,22 @@ public class DatacenterTableBase extends DateEntity implements Serializable {
this.tenantId = tenantId;
}
public BigInteger getSourceId() {
return sourceId;
}
public void setSourceId(BigInteger sourceId) {
this.sourceId = sourceId;
}
public BigInteger getCatalogId() {
return catalogId;
}
public void setCatalogId(BigInteger catalogId) {
this.catalogId = catalogId;
}
public String getTableName() {
return tableName;
}
@@ -135,6 +193,38 @@ public class DatacenterTableBase extends DateEntity implements Serializable {
this.actualTable = actualTable;
}
public String getTableKind() {
return tableKind;
}
public void setTableKind(String tableKind) {
this.tableKind = tableKind;
}
public String getAccessMode() {
return accessMode;
}
public void setAccessMode(String accessMode) {
this.accessMode = accessMode;
}
public String getMaterializedTable() {
return materializedTable;
}
public void setMaterializedTable(String materializedTable) {
this.materializedTable = materializedTable;
}
public Integer getVersioningEnabled() {
return versioningEnabled;
}
public void setVersioningEnabled(Integer versioningEnabled) {
this.versioningEnabled = versioningEnabled;
}
public Integer getStatus() {
return status;
}
@@ -183,4 +273,12 @@ public class DatacenterTableBase extends DateEntity implements Serializable {
this.options = options;
}
public Map<String, Object> getCapabilitiesJson() {
return capabilitiesJson;
}
public void setCapabilitiesJson(Map<String, Object> capabilitiesJson) {
this.capabilitiesJson = capabilitiesJson;
}
}

View File

@@ -33,6 +33,12 @@ public class DatacenterTableFieldBase extends DateEntity implements Serializable
@Column(comment = "字段名称")
private String fieldName;
/**
* 源字段名
*/
@Column(comment = "源字段名")
private String sourceColumnName;
/**
* 字段描述
*/
@@ -45,12 +51,54 @@ public class DatacenterTableFieldBase extends DateEntity implements Serializable
@Column(comment = "字段类型")
private Integer fieldType;
/**
* JDBC 类型
*/
@Column(comment = "JDBC类型")
private String jdbcType;
/**
* 精度
*/
@Column(comment = "精度")
private Integer precision;
/**
* 小数位
*/
@Column(comment = "小数位")
private Integer scale;
/**
* 是否必填
*/
@Column(comment = "是否必填")
private Integer required;
/**
* 可查询
*/
@Column(comment = "可查询")
private Integer queryable;
/**
* 可排序
*/
@Column(comment = "可排序")
private Integer sortable;
/**
* 可写入
*/
@Column(comment = "可写入")
private Integer writable;
/**
* 是否索引
*/
@Column(comment = "是否索引")
private Integer indexed;
/**
* 扩展项
*/
@@ -105,6 +153,14 @@ public class DatacenterTableFieldBase extends DateEntity implements Serializable
this.fieldName = fieldName;
}
public String getSourceColumnName() {
return sourceColumnName;
}
public void setSourceColumnName(String sourceColumnName) {
this.sourceColumnName = sourceColumnName;
}
public String getFieldDesc() {
return fieldDesc;
}
@@ -121,6 +177,30 @@ public class DatacenterTableFieldBase extends DateEntity implements Serializable
this.fieldType = fieldType;
}
public String getJdbcType() {
return jdbcType;
}
public void setJdbcType(String jdbcType) {
this.jdbcType = jdbcType;
}
public Integer getPrecision() {
return precision;
}
public void setPrecision(Integer precision) {
this.precision = precision;
}
public Integer getScale() {
return scale;
}
public void setScale(Integer scale) {
this.scale = scale;
}
public Integer getRequired() {
return required;
}
@@ -129,6 +209,38 @@ public class DatacenterTableFieldBase extends DateEntity implements Serializable
this.required = required;
}
public Integer getQueryable() {
return queryable;
}
public void setQueryable(Integer queryable) {
this.queryable = queryable;
}
public Integer getSortable() {
return sortable;
}
public void setSortable(Integer sortable) {
this.sortable = sortable;
}
public Integer getWritable() {
return writable;
}
public void setWritable(Integer writable) {
this.writable = writable;
}
public Integer getIndexed() {
return indexed;
}
public void setIndexed(Integer indexed) {
this.indexed = indexed;
}
public Map<String, Object> getOptions() {
return options;
}