+ * 组件图表表 + *
+ * + * @Author bi-coder + * @since 2024-12-12 + */ +@TableName("core_chart_view") +public class CoreChartView implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * ID + */ + private Long id; + + /** + * 标题 + */ + private String title; + + /** + * 场景ID chart_type为private的时候 是仪表板id + */ + private Long sceneId; + + /** + * 数据集表ID + */ + private Long tableId; + + /** + * 图表类型 + */ + private String type; + + /** + * 图表渲染方式 + */ + private String render; + + /** + * 展示结果 + */ + private Integer resultCount; + + /** + * 展示模式 + */ + private String resultMode; + + /** + * 横轴field + */ + private String xAxis; + + /** + * table-row + */ + private String xAxisExt; + + /** + * 纵轴field + */ + private String yAxis; + + /** + * 副轴 + */ + private String yAxisExt; + + /** + * 堆叠项 + */ + private String extStack; + + /** + * 气泡大小 + */ + private String extBubble; + + /** + * 动态标签 + */ + private String extLabel; + + /** + * 动态提示 + */ + private String extTooltip; + + /** + * 图形属性 + */ + private String customAttr; + + /** + * 组件样式 + */ + private String customStyle; + + /** + * 结果过滤 + */ + private String customFilter; + + /** + * 钻取字段 + */ + private String drillFields; + + /** + * 高级 + */ + private String senior; + + /** + * 创建人ID + */ + private String createBy; + + /** + * 创建时间 + */ + private Long createTime; + + /** + * 更新时间 + */ + private Long updateTime; + + /** + * 缩略图 + */ + private String snapshot; + + /** + * 样式优先级 panel 仪表板 view 图表 + */ + private String stylePriority; + + /** + * 图表类型 public 公共 历史可复用的图表,private 私有 专属某个仪表板 + */ + private String chartType; + + /** + * 是否插件 + */ + private Boolean isPlugin; + + /** + * 数据来源 template 模板数据 dataset 数据集数据 + */ + private String dataFrom; + + /** + * 图表字段集合 + */ + private String viewFields; + + /** + * 是否开启刷新 + */ + private Boolean refreshViewEnable; + + /** + * 刷新时间单位 + */ + private String refreshUnit; + + /** + * 刷新时间 + */ + private Integer refreshTime; + + /** + * 是否开启联动 + */ + private Boolean linkageActive; + + /** + * 是否开启跳转 + */ + private Boolean jumpActive; + + /** + * 复制来源 + */ + private Long copyFrom; + + /** + * 复制ID + */ + private Long copyId; + + /** + * 区间条形图开启时间纬度开启聚合 + */ + private Boolean aggregate; + + /** + * 流向地图起点名称field + */ + private String flowMapStartName; + + /** + * 流向地图终点名称field + */ + private String flowMapEndName; + + /** + * 颜色维度field + */ + private String extColor; + + /** + * 图形属性_移动端 + */ + private String customAttrMobile; + + /** + * 组件样式_移动端 + */ + private String customStyleMobile; + + /** + * 字段排序优先级 + */ + private String sortPriority; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public Long getSceneId() { + return sceneId; + } + + public void setSceneId(Long sceneId) { + this.sceneId = sceneId; + } + + public Long getTableId() { + return tableId; + } + + public void setTableId(Long tableId) { + this.tableId = tableId; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getRender() { + return render; + } + + public void setRender(String render) { + this.render = render; + } + + public Integer getResultCount() { + return resultCount; + } + + public void setResultCount(Integer resultCount) { + this.resultCount = resultCount; + } + + public String getResultMode() { + return resultMode; + } + + public void setResultMode(String resultMode) { + this.resultMode = resultMode; + } + + public String getxAxis() { + return xAxis; + } + + public void setxAxis(String xAxis) { + this.xAxis = xAxis; + } + + public String getxAxisExt() { + return xAxisExt; + } + + public void setxAxisExt(String xAxisExt) { + this.xAxisExt = xAxisExt; + } + + public String getyAxis() { + return yAxis; + } + + public void setyAxis(String yAxis) { + this.yAxis = yAxis; + } + + public String getyAxisExt() { + return yAxisExt; + } + + public void setyAxisExt(String yAxisExt) { + this.yAxisExt = yAxisExt; + } + + public String getExtStack() { + return extStack; + } + + public void setExtStack(String extStack) { + this.extStack = extStack; + } + + public String getExtBubble() { + return extBubble; + } + + public void setExtBubble(String extBubble) { + this.extBubble = extBubble; + } + + public String getExtLabel() { + return extLabel; + } + + public void setExtLabel(String extLabel) { + this.extLabel = extLabel; + } + + public String getExtTooltip() { + return extTooltip; + } + + public void setExtTooltip(String extTooltip) { + this.extTooltip = extTooltip; + } + + public String getCustomAttr() { + return customAttr; + } + + public void setCustomAttr(String customAttr) { + this.customAttr = customAttr; + } + + public String getCustomStyle() { + return customStyle; + } + + public void setCustomStyle(String customStyle) { + this.customStyle = customStyle; + } + + public String getCustomFilter() { + return customFilter; + } + + public void setCustomFilter(String customFilter) { + this.customFilter = customFilter; + } + + public String getDrillFields() { + return drillFields; + } + + public void setDrillFields(String drillFields) { + this.drillFields = drillFields; + } + + public String getSenior() { + return senior; + } + + public void setSenior(String senior) { + this.senior = senior; + } + + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + + public Long getCreateTime() { + return createTime; + } + + public void setCreateTime(Long createTime) { + this.createTime = createTime; + } + + public Long getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Long updateTime) { + this.updateTime = updateTime; + } + + public String getSnapshot() { + return snapshot; + } + + public void setSnapshot(String snapshot) { + this.snapshot = snapshot; + } + + public String getStylePriority() { + return stylePriority; + } + + public void setStylePriority(String stylePriority) { + this.stylePriority = stylePriority; + } + + public String getChartType() { + return chartType; + } + + public void setChartType(String chartType) { + this.chartType = chartType; + } + + public Boolean getIsPlugin() { + return isPlugin; + } + + public void setIsPlugin(Boolean isPlugin) { + this.isPlugin = isPlugin; + } + + public String getDataFrom() { + return dataFrom; + } + + public void setDataFrom(String dataFrom) { + this.dataFrom = dataFrom; + } + + public String getViewFields() { + return viewFields; + } + + public void setViewFields(String viewFields) { + this.viewFields = viewFields; + } + + public Boolean getRefreshViewEnable() { + return refreshViewEnable; + } + + public void setRefreshViewEnable(Boolean refreshViewEnable) { + this.refreshViewEnable = refreshViewEnable; + } + + public String getRefreshUnit() { + return refreshUnit; + } + + public void setRefreshUnit(String refreshUnit) { + this.refreshUnit = refreshUnit; + } + + public Integer getRefreshTime() { + return refreshTime; + } + + public void setRefreshTime(Integer refreshTime) { + this.refreshTime = refreshTime; + } + + public Boolean getLinkageActive() { + return linkageActive; + } + + public void setLinkageActive(Boolean linkageActive) { + this.linkageActive = linkageActive; + } + + public Boolean getJumpActive() { + return jumpActive; + } + + public void setJumpActive(Boolean jumpActive) { + this.jumpActive = jumpActive; + } + + public Long getCopyFrom() { + return copyFrom; + } + + public void setCopyFrom(Long copyFrom) { + this.copyFrom = copyFrom; + } + + public Long getCopyId() { + return copyId; + } + + public void setCopyId(Long copyId) { + this.copyId = copyId; + } + + public Boolean getAggregate() { + return aggregate; + } + + public void setAggregate(Boolean aggregate) { + this.aggregate = aggregate; + } + + public String getFlowMapStartName() { + return flowMapStartName; + } + + public void setFlowMapStartName(String flowMapStartName) { + this.flowMapStartName = flowMapStartName; + } + + public String getFlowMapEndName() { + return flowMapEndName; + } + + public void setFlowMapEndName(String flowMapEndName) { + this.flowMapEndName = flowMapEndName; + } + + public String getExtColor() { + return extColor; + } + + public void setExtColor(String extColor) { + this.extColor = extColor; + } + + public String getCustomAttrMobile() { + return customAttrMobile; + } + + public void setCustomAttrMobile(String customAttrMobile) { + this.customAttrMobile = customAttrMobile; + } + + public String getCustomStyleMobile() { + return customStyleMobile; + } + + public void setCustomStyleMobile(String customStyleMobile) { + this.customStyleMobile = customStyleMobile; + } + + public String getSortPriority() { + return sortPriority; + } + + public void setSortPriority(String sortPriority) { + this.sortPriority = sortPriority; + } + + @Override + public String toString() { + return "CoreChartView{" + + "id = " + id + + ", title = " + title + + ", sceneId = " + sceneId + + ", tableId = " + tableId + + ", type = " + type + + ", render = " + render + + ", resultCount = " + resultCount + + ", resultMode = " + resultMode + + ", xAxis = " + xAxis + + ", xAxisExt = " + xAxisExt + + ", yAxis = " + yAxis + + ", yAxisExt = " + yAxisExt + + ", extStack = " + extStack + + ", extBubble = " + extBubble + + ", extLabel = " + extLabel + + ", extTooltip = " + extTooltip + + ", customAttr = " + customAttr + + ", customStyle = " + customStyle + + ", customFilter = " + customFilter + + ", drillFields = " + drillFields + + ", senior = " + senior + + ", createBy = " + createBy + + ", createTime = " + createTime + + ", updateTime = " + updateTime + + ", snapshot = " + snapshot + + ", stylePriority = " + stylePriority + + ", chartType = " + chartType + + ", isPlugin = " + isPlugin + + ", dataFrom = " + dataFrom + + ", viewFields = " + viewFields + + ", refreshViewEnable = " + refreshViewEnable + + ", refreshUnit = " + refreshUnit + + ", refreshTime = " + refreshTime + + ", linkageActive = " + linkageActive + + ", jumpActive = " + jumpActive + + ", copyFrom = " + copyFrom + + ", copyId = " + copyId + + ", aggregate = " + aggregate + + ", flowMapStartName = " + flowMapStartName + + ", flowMapEndName = " + flowMapEndName + + ", extColor = " + extColor + + ", customAttrMobile = " + customAttrMobile + + ", customStyleMobile = " + customStyleMobile + + ", sortPriority = " + sortPriority + + "}"; + } +} diff --git a/backend/src/main/java/com/stdproject/entity/CoreDatasetGroup.java b/backend/src/main/java/com/stdproject/entity/CoreDatasetGroup.java new file mode 100644 index 0000000..2489680 --- /dev/null +++ b/backend/src/main/java/com/stdproject/entity/CoreDatasetGroup.java @@ -0,0 +1,263 @@ +package com.stdproject.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import java.io.Serializable; + +/** + *+ * 数据集分组表 + *
+ * + * @Author bi-coder + * @since 2023-08-28 + */ +@TableName("core_dataset_group") +public class CoreDatasetGroup implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * ID + */ + private Long id; + + /** + * 名称 + */ + private String name; + + /** + * 应用ID + */ + private String appId; + + /** + * 父级ID + */ + private Long pid; + + /** + * 当前分组处于第几级 + */ + private Integer level; + + /** + * node类型:folder or dataset + */ + private String nodeType; + + /** + * sql,union + */ + private String type; + + /** + * 连接模式:0-直连,1-同步(包括excel、api等数据存在de中的表) + */ + private Integer mode; + + /** + * 关联关系树 + */ + private String info; + + /** + * 创建人ID + */ + private String createBy; + + /** + * 创建时间 + */ + private Long createTime; + + /** + * Quartz 实例 ID + */ + private String qrtzInstance; + + /** + * 同步状态 + */ + private String syncStatus; + + /** + * 更新人ID + */ + private String updateBy; + + /** + * 最后同步时间 + */ + private Long lastUpdateTime; + + /** + * 关联sql + */ + private String unionSql; + + /** + * 是否跨源 + */ + private Boolean isCross; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Long getPid() { + return pid; + } + + public void setPid(Long pid) { + this.pid = pid; + } + + public Integer getLevel() { + return level; + } + + public void setLevel(Integer level) { + this.level = level; + } + + public String getNodeType() { + return nodeType; + } + + public void setNodeType(String nodeType) { + this.nodeType = nodeType; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public Integer getMode() { + return mode; + } + + public void setMode(Integer mode) { + this.mode = mode; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + + public Long getCreateTime() { + return createTime; + } + + public void setCreateTime(Long createTime) { + this.createTime = createTime; + } + + public String getQrtzInstance() { + return qrtzInstance; + } + + public void setQrtzInstance(String qrtzInstance) { + this.qrtzInstance = qrtzInstance; + } + + public String getSyncStatus() { + return syncStatus; + } + + public void setSyncStatus(String syncStatus) { + this.syncStatus = syncStatus; + } + + public String getUpdateBy() { + return updateBy; + } + + public void setUpdateBy(String updateBy) { + this.updateBy = updateBy; + } + + public Long getLastUpdateTime() { + return lastUpdateTime; + } + + public void setLastUpdateTime(Long lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + } + + public String getUnionSql() { + return unionSql; + } + + public void setUnionSql(String unionSql) { + this.unionSql = unionSql; + } + + public Boolean getIsCross() { + return isCross; + } + + public void setIsCross(Boolean isCross) { + this.isCross = isCross; + } + + @Override + public String toString() { + return "CoreDatasetGroup{" + + "id = " + id + + ", appId = " + appId + + ", name = " + name + + ", pid = " + pid + + ", level = " + level + + ", nodeType = " + nodeType + + ", type = " + type + + ", mode = " + mode + + ", info = " + info + + ", createBy = " + createBy + + ", createTime = " + createTime + + ", qrtzInstance = " + qrtzInstance + + ", syncStatus = " + syncStatus + + ", updateBy = " + updateBy + + ", lastUpdateTime = " + lastUpdateTime + + ", unionSql = " + unionSql + + ", isCross = " + isCross + + "}"; + } + + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } +} diff --git a/backend/src/main/java/com/stdproject/entity/CoreDatasetTable.java b/backend/src/main/java/com/stdproject/entity/CoreDatasetTable.java new file mode 100644 index 0000000..64e4e15 --- /dev/null +++ b/backend/src/main/java/com/stdproject/entity/CoreDatasetTable.java @@ -0,0 +1,151 @@ +package com.stdproject.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import java.io.Serializable; + +/** + *+ * + *
+ * + * @Author bi-coder + * @since 2023-04-14 + */ +@TableName("core_dataset_table") +public class CoreDatasetTable implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * ID + */ + private Long id; + + /** + * 名称 + */ + private String name; + + /** + * 项目ID + */ + private String appId; + + /** + * 物理表名 + */ + private String tableName; + + /** + * 数据源ID + */ + private Long datasourceId; + + /** + * 数据集ID + */ + private Long datasetGroupId; + + /** + * db,sql,union,excel,api + */ + private String type; + + /** + * 表原始信息,表名,sql等 + */ + private String info; + + /** + * SQL参数 + */ + private String sqlVariableDetails; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getTableName() { + return tableName; + } + + public void setTableName(String tableName) { + this.tableName = tableName; + } + + public Long getDatasourceId() { + return datasourceId; + } + + public void setDatasourceId(Long datasourceId) { + this.datasourceId = datasourceId; + } + + public Long getDatasetGroupId() { + return datasetGroupId; + } + + public void setDatasetGroupId(Long datasetGroupId) { + this.datasetGroupId = datasetGroupId; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getSqlVariableDetails() { + return sqlVariableDetails; + } + + public void setSqlVariableDetails(String sqlVariableDetails) { + this.sqlVariableDetails = sqlVariableDetails; + } + + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + @Override + public String toString() { + return "CoreDatasetTable{" + + "id = " + id + + "appId = " + appId + + ", name = " + name + + ", tableName = " + tableName + + ", datasourceId = " + datasourceId + + ", datasetGroupId = " + datasetGroupId + + ", type = " + type + + ", info = " + info + + ", sqlVariableDetails = " + sqlVariableDetails + + "}"; + } +} diff --git a/backend/src/main/java/com/stdproject/entity/CoreDatasetTableField.java b/backend/src/main/java/com/stdproject/entity/CoreDatasetTableField.java new file mode 100644 index 0000000..aeda1a1 --- /dev/null +++ b/backend/src/main/java/com/stdproject/entity/CoreDatasetTableField.java @@ -0,0 +1,375 @@ +package com.stdproject.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import java.io.Serializable; + +/** + *+ * table数据集表字段 + *
+ * + * @Author bi-coder + * @since 2025-02-06 + */ +@TableName("core_dataset_table_field") +public class CoreDatasetTableField implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * ID + */ + private Long id; + + /** + * 数据源ID + */ + private Long datasourceId; + + /** + * 数据表ID + */ + private Long datasetTableId; + + /** + * 数据集ID + */ + private Long datasetGroupId; + + /** + * 视图ID + */ + private Long chartId; + + /** + * 原始字段名 + */ + private String originName; + + /** + * 字段名用于展示 + */ + private String name; + + /** + * 描述 + */ + private String description; + + /** + * 字段名用作唯一标识 + */ + private String gisbiName; + + /** + * de字段别名 + */ + private String fieldShortName; + + /** + * 分组设置 + */ + private String groupList; + + /** + * 未分组的值 + */ + private String otherGroup; + + /** + * 维度/指标标识 d:维度,q:指标 + */ + private String groupType; + + /** + * 原始字段类型 + */ + private String type; + + /** + * 字段长度(允许为空,默认0) + */ + private Integer size; + + /** + * gisbi字段类型:0-文本,1-时间,2-整型数值,3-浮点数值,4-布尔,5-地理位置,6-二进制 + */ + private Integer deType; + + /** + * de记录的原始类型 + */ + private Integer deExtractType; + + /** + * 是否扩展字段 0原始 1复制 2计算字段... + */ + private Integer extField; + + /** + * 是否选中 + */ + private Boolean checked; + + /** + * 列位置 + */ + private Integer columnIndex; + + /** + * 同步时间 + */ + private Long lastSyncTime; + + /** + * 精度 + */ + private Integer accuracy; + + /** + * 时间字段类型 + */ + private String dateFormat; + + /** + * 时间格式类型 + */ + private String dateFormatType; + + /** + * 计算字段参数 + */ + private String params; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getDatasourceId() { + return datasourceId; + } + + public void setDatasourceId(Long datasourceId) { + this.datasourceId = datasourceId; + } + + public Long getDatasetTableId() { + return datasetTableId; + } + + public void setDatasetTableId(Long datasetTableId) { + this.datasetTableId = datasetTableId; + } + + public Long getDatasetGroupId() { + return datasetGroupId; + } + + public void setDatasetGroupId(Long datasetGroupId) { + this.datasetGroupId = datasetGroupId; + } + + public Long getChartId() { + return chartId; + } + + public void setChartId(Long chartId) { + this.chartId = chartId; + } + + public String getOriginName() { + return originName; + } + + public void setOriginName(String originName) { + this.originName = originName; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getGisbiName() { + return gisbiName; + } + + public void setGisbiName(String gisbiName) { + this.gisbiName = gisbiName; + } + + public String getFieldShortName() { + return fieldShortName; + } + + public void setFieldShortName(String fieldShortName) { + this.fieldShortName = fieldShortName; + } + + public String getGroupList() { + return groupList; + } + + public void setGroupList(String groupList) { + this.groupList = groupList; + } + + public String getOtherGroup() { + return otherGroup; + } + + public void setOtherGroup(String otherGroup) { + this.otherGroup = otherGroup; + } + + public String getGroupType() { + return groupType; + } + + public void setGroupType(String groupType) { + this.groupType = groupType; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public Integer getDeType() { + return deType; + } + + public void setDeType(Integer deType) { + this.deType = deType; + } + + public Integer getDeExtractType() { + return deExtractType; + } + + public void setDeExtractType(Integer deExtractType) { + this.deExtractType = deExtractType; + } + + public Integer getExtField() { + return extField; + } + + public void setExtField(Integer extField) { + this.extField = extField; + } + + public Boolean getChecked() { + return checked; + } + + public void setChecked(Boolean checked) { + this.checked = checked; + } + + public Integer getColumnIndex() { + return columnIndex; + } + + public void setColumnIndex(Integer columnIndex) { + this.columnIndex = columnIndex; + } + + public Long getLastSyncTime() { + return lastSyncTime; + } + + public void setLastSyncTime(Long lastSyncTime) { + this.lastSyncTime = lastSyncTime; + } + + public Integer getAccuracy() { + return accuracy; + } + + public void setAccuracy(Integer accuracy) { + this.accuracy = accuracy; + } + + public String getDateFormat() { + return dateFormat; + } + + public void setDateFormat(String dateFormat) { + this.dateFormat = dateFormat; + } + + public String getDateFormatType() { + return dateFormatType; + } + + public void setDateFormatType(String dateFormatType) { + this.dateFormatType = dateFormatType; + } + + public String getParams() { + return params; + } + + public void setParams(String params) { + this.params = params; + } + + @Override + public String toString() { + return "CoreDatasetTableField{" + + "id = " + id + + ", datasourceId = " + datasourceId + + ", datasetTableId = " + datasetTableId + + ", datasetGroupId = " + datasetGroupId + + ", chartId = " + chartId + + ", originName = " + originName + + ", name = " + name + + ", description = " + description + + ", gisbiName = " + gisbiName + + ", fieldShortName = " + fieldShortName + + ", groupList = " + groupList + + ", otherGroup = " + otherGroup + + ", groupType = " + groupType + + ", type = " + type + + ", size = " + size + + ", deType = " + deType + + ", deExtractType = " + deExtractType + + ", extField = " + extField + + ", checked = " + checked + + ", columnIndex = " + columnIndex + + ", lastSyncTime = " + lastSyncTime + + ", accuracy = " + accuracy + + ", dateFormat = " + dateFormat + + ", dateFormatType = " + dateFormatType + + ", params = " + params + + "}"; + } +} diff --git a/backend/src/main/java/com/stdproject/entity/CoreDatasetTableSqlLog.java b/backend/src/main/java/com/stdproject/entity/CoreDatasetTableSqlLog.java new file mode 100644 index 0000000..c8a228c --- /dev/null +++ b/backend/src/main/java/com/stdproject/entity/CoreDatasetTableSqlLog.java @@ -0,0 +1,123 @@ +package com.stdproject.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import java.io.Serializable; + +/** + *+ * + *
+ * + * @Author bi-coder + * @since 2023-08-08 + */ +@TableName("core_dataset_table_sql_log") +public class CoreDatasetTableSqlLog implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * ID + */ + private String id; + + /** + * 数据集SQL节点ID + */ + private String tableId; + + /** + * 开始时间 + */ + private Long startTime; + + /** + * 结束时间 + */ + private Long endTime; + + /** + * 耗时(毫秒) + */ + private Long spend; + + /** + * 详细信息 + */ + private String sql; + + /** + * 状态 + */ + private String status; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getTableId() { + return tableId; + } + + public void setTableId(String tableId) { + this.tableId = tableId; + } + + public Long getStartTime() { + return startTime; + } + + public void setStartTime(Long startTime) { + this.startTime = startTime; + } + + public Long getEndTime() { + return endTime; + } + + public void setEndTime(Long endTime) { + this.endTime = endTime; + } + + public Long getSpend() { + return spend; + } + + public void setSpend(Long spend) { + this.spend = spend; + } + + public String getSql() { + return sql; + } + + public void setSql(String sql) { + this.sql = sql; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + @Override + public String toString() { + return "CoreDatasetTableSqlLog{" + + "id = " + id + + ", tableId = " + tableId + + ", startTime = " + startTime + + ", endTime = " + endTime + + ", spend = " + spend + + ", sql = " + sql + + ", status = " + status + + "}"; + } +} diff --git a/backend/src/main/java/com/stdproject/entity/SnapshotVisualizationOuterParamsInfo.java b/backend/src/main/java/com/stdproject/entity/SnapshotVisualizationOuterParamsInfo.java new file mode 100644 index 0000000..5c679d2 --- /dev/null +++ b/backend/src/main/java/com/stdproject/entity/SnapshotVisualizationOuterParamsInfo.java @@ -0,0 +1,153 @@ +package com.stdproject.entity; + +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; + +import java.io.Serializable; + +/** + *+ * 外部参数配置表 + *
+ * + * @Author bi-coder + * @since 2025-03-24 + */ +@TableName("snapshot_visualization_outer_params_info") +public class SnapshotVisualizationOuterParamsInfo implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 主键 + */ + @TableId("params_info_id") + private String paramsInfoId; + + /** + * visualization_outer_params 表的 ID + */ + private String paramsId; + + /** + * 参数名 + */ + private String paramName; + + /** + * 是否启用 + */ + private Boolean checked; + + /** + * 复制来源 + */ + private String copyFrom; + + /** + * 复制来源ID + */ + private String copyId; + + /** + * 是否必填 + */ + private Boolean required; + + /** + * 默认值 JSON格式 + */ + private String defaultValue; + + /** + * 是否启用默认值 + */ + private Boolean enabledDefault; + + public String getParamsInfoId() { + return paramsInfoId; + } + + public void setParamsInfoId(String paramsInfoId) { + this.paramsInfoId = paramsInfoId; + } + + public String getParamsId() { + return paramsId; + } + + public void setParamsId(String paramsId) { + this.paramsId = paramsId; + } + + public String getParamName() { + return paramName; + } + + public void setParamName(String paramName) { + this.paramName = paramName; + } + + public Boolean getChecked() { + return checked; + } + + public void setChecked(Boolean checked) { + this.checked = checked; + } + + public String getCopyFrom() { + return copyFrom; + } + + public void setCopyFrom(String copyFrom) { + this.copyFrom = copyFrom; + } + + public String getCopyId() { + return copyId; + } + + public void setCopyId(String copyId) { + this.copyId = copyId; + } + + public Boolean getRequired() { + return required; + } + + public void setRequired(Boolean required) { + this.required = required; + } + + public String getDefaultValue() { + return defaultValue; + } + + public void setDefaultValue(String defaultValue) { + this.defaultValue = defaultValue; + } + + public Boolean getEnabledDefault() { + return enabledDefault; + } + + public void setEnabledDefault(Boolean enabledDefault) { + this.enabledDefault = enabledDefault; + } + + @Override + public String toString() { + return "SnapshotVisualizationOuterParamsInfo{" + + "paramsInfoId = " + paramsInfoId + + ", paramsId = " + paramsId + + ", paramName = " + paramName + + ", checked = " + checked + + ", copyFrom = " + copyFrom + + ", copyId = " + copyId + + ", required = " + required + + ", defaultValue = " + defaultValue + + ", enabledDefault = " + enabledDefault + + "}"; + } +} diff --git a/backend/src/main/java/com/stdproject/entity/VisualizationLinkage.java b/backend/src/main/java/com/stdproject/entity/VisualizationLinkage.java new file mode 100644 index 0000000..7402d5b --- /dev/null +++ b/backend/src/main/java/com/stdproject/entity/VisualizationLinkage.java @@ -0,0 +1,161 @@ +package com.stdproject.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import java.io.Serializable; + +/** + *+ * + *
+ * + * @Author bi-coder + * @since 2023-09-22 + */ +@TableName("visualization_linkage") +public class VisualizationLinkage implements Serializable { + + private static final long serialVersionUID = 1L; + + private Long id; + + private Long dvId; + + /** + * 源图表id + */ + private Long sourceViewId; + + /** + * 联动图表id + */ + private Long targetViewId; + + /** + * 更新时间 + */ + private Long updateTime; + + /** + * 更新人 + */ + private String updatePeople; + + /** + * 是否启用关联 + */ + private Boolean linkageActive; + + private String ext1; + + private String ext2; + + private Long copyFrom; + + private Long copyId; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getDvId() { + return dvId; + } + + public void setDvId(Long dvId) { + this.dvId = dvId; + } + + public Long getSourceViewId() { + return sourceViewId; + } + + public void setSourceViewId(Long sourceViewId) { + this.sourceViewId = sourceViewId; + } + + public Long getTargetViewId() { + return targetViewId; + } + + public void setTargetViewId(Long targetViewId) { + this.targetViewId = targetViewId; + } + + public Long getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Long updateTime) { + this.updateTime = updateTime; + } + + public String getUpdatePeople() { + return updatePeople; + } + + public void setUpdatePeople(String updatePeople) { + this.updatePeople = updatePeople; + } + + public Boolean getLinkageActive() { + return linkageActive; + } + + public void setLinkageActive(Boolean linkageActive) { + this.linkageActive = linkageActive; + } + + public String getExt1() { + return ext1; + } + + public void setExt1(String ext1) { + this.ext1 = ext1; + } + + public String getExt2() { + return ext2; + } + + public void setExt2(String ext2) { + this.ext2 = ext2; + } + + public Long getCopyFrom() { + return copyFrom; + } + + public void setCopyFrom(Long copyFrom) { + this.copyFrom = copyFrom; + } + + public Long getCopyId() { + return copyId; + } + + public void setCopyId(Long copyId) { + this.copyId = copyId; + } + + @Override + public String toString() { + return "VisualizationLinkage{" + + "id = " + id + + ", dvId = " + dvId + + ", sourceViewId = " + sourceViewId + + ", targetViewId = " + targetViewId + + ", updateTime = " + updateTime + + ", updatePeople = " + updatePeople + + ", linkageActive = " + linkageActive + + ", ext1 = " + ext1 + + ", ext2 = " + ext2 + + ", copyFrom = " + copyFrom + + ", copyId = " + copyId + + "}"; + } +} diff --git a/backend/src/main/java/com/stdproject/entity/VisualizationLinkageField.java b/backend/src/main/java/com/stdproject/entity/VisualizationLinkageField.java new file mode 100644 index 0000000..0bdaffa --- /dev/null +++ b/backend/src/main/java/com/stdproject/entity/VisualizationLinkageField.java @@ -0,0 +1,114 @@ +package com.stdproject.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import java.io.Serializable; + +/** + *+ * + *
+ * + * @Author bi-coder + * @since 2023-09-22 + */ +@TableName("visualization_linkage_field") +public class VisualizationLinkageField implements Serializable { + + private static final long serialVersionUID = 1L; + + private Long id; + + /** + * 联动ID + */ + private Long linkageId; + + /** + * 源图表字段 + */ + private Long sourceField; + + /** + * 目标图表字段 + */ + private Long targetField; + + /** + * 更新时间 + */ + private Long updateTime; + + private Long copyFrom; + + private Long copyId; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getLinkageId() { + return linkageId; + } + + public void setLinkageId(Long linkageId) { + this.linkageId = linkageId; + } + + public Long getSourceField() { + return sourceField; + } + + public void setSourceField(Long sourceField) { + this.sourceField = sourceField; + } + + public Long getTargetField() { + return targetField; + } + + public void setTargetField(Long targetField) { + this.targetField = targetField; + } + + public Long getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Long updateTime) { + this.updateTime = updateTime; + } + + public Long getCopyFrom() { + return copyFrom; + } + + public void setCopyFrom(Long copyFrom) { + this.copyFrom = copyFrom; + } + + public Long getCopyId() { + return copyId; + } + + public void setCopyId(Long copyId) { + this.copyId = copyId; + } + + @Override + public String toString() { + return "VisualizationLinkageField{" + + "id = " + id + + ", linkageId = " + linkageId + + ", sourceField = " + sourceField + + ", targetField = " + targetField + + ", updateTime = " + updateTime + + ", copyFrom = " + copyFrom + + ", copyId = " + copyId + + "}"; + } +} diff --git a/backend/src/main/java/com/stdproject/entity/dto/BaseTreeNodeDTO.java b/backend/src/main/java/com/stdproject/entity/dto/BaseTreeNodeDTO.java new file mode 100644 index 0000000..a1ac4ff --- /dev/null +++ b/backend/src/main/java/com/stdproject/entity/dto/BaseTreeNodeDTO.java @@ -0,0 +1,28 @@ +package com.stdproject.entity.dto; + + +import lombok.Data; + +import java.util.List; + +@Data +public class BaseTreeNodeDTO { + + private String id; + + private String pid; + + private String text; + + private String nodeType; + + private List