Browse Source

数据管理模块支持按指标类型筛选数据

- 在 EdbClassifyId 方法中添加了按指标类型筛选的功能
- 修改了 GetEdbInfoByClassifyId 方法以支持新的筛选逻辑
- 更新了相关调用 GetEdbInfoByClassifyId 方法的代码以适应新的筛选逻辑
Roc 5 months ago
parent
commit
e97f504869
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/data/chart_theme.go

+ 1 - 1
services/data/chart_theme.go

@@ -641,7 +641,7 @@ func GetChartThemeConfig(chartThemeId, source, chartType int) (chartTheme *chart
 	err = nil
 
 	// 如果找到了,那么就返回
-	if chartTheme != nil {
+	if chartTheme != nil && chartTheme.ChartThemeId > 0 {
 		// 兼容历史数据,加入新字段LineOptionList
 		newConfig, e := ConvertOldChartOptions(chartTheme.Config)
 		if e == nil {