数据集和数据表添加了appId字段

This commit is contained in:
limengnan 2025-06-25 11:56:52 +08:00
parent e7c98f8221
commit 71ff967544
3 changed files with 24 additions and 0 deletions

View File

@ -233,6 +233,7 @@ public class CoreDatasetGroup implements Serializable {
public String toString() { public String toString() {
return "CoreDatasetGroup{" + return "CoreDatasetGroup{" +
"id = " + id + "id = " + id +
", appId = " + appId +
", name = " + name + ", name = " + name +
", pid = " + pid + ", pid = " + pid +
", level = " + level + ", level = " + level +
@ -250,4 +251,12 @@ public class CoreDatasetGroup implements Serializable {
", isCross = " + isCross + ", isCross = " + isCross +
"}"; "}";
} }
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId;
}
} }

View File

@ -26,6 +26,11 @@ public class CoreDatasetTable implements Serializable {
*/ */
private String name; private String name;
/**
* 项目ID
*/
private String appId;
/** /**
* 物理表名 * 物理表名
*/ */
@ -120,10 +125,19 @@ public class CoreDatasetTable implements Serializable {
this.sqlVariableDetails = sqlVariableDetails; this.sqlVariableDetails = sqlVariableDetails;
} }
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId;
}
@Override @Override
public String toString() { public String toString() {
return "CoreDatasetTable{" + return "CoreDatasetTable{" +
"id = " + id + "id = " + id +
"appId = " + appId +
", name = " + name + ", name = " + name +
", tableName = " + tableName + ", tableName = " + tableName +
", datasourceId = " + datasourceId + ", datasourceId = " + datasourceId +

View File

@ -323,6 +323,7 @@ public class DatasetGroupManage {
DEException.throwException(Translator.get("i18n_table_duplicate")); DEException.throwException(Translator.get("i18n_table_duplicate"));
} }
currentDs.setDatasetGroupId(datasetGroupId); currentDs.setDatasetGroupId(datasetGroupId);
currentDs.setAppId(datasetGroupInfoDTO.getAppId());
datasetTableManage.save(currentDs); datasetTableManage.save(currentDs);
tableIds.add(currentDs.getId()); tableIds.add(currentDs.getId());