Browse Source

fix:eiaSteo数据列表

zqbao 8 months ago
parent
commit
05cd1be26d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      services/data/base_from_eia_steo.go

+ 3 - 1
services/data/base_from_eia_steo.go

@@ -18,7 +18,9 @@ func GetClassifyALLById(classifyId int) (items []*data_manage.BaseFromEiaSteoCla
 			return
 		}
 		items = append(items, childClassify...)
-	} else {
+	}
+	// 兼容之前部分指标在一级分类下的情况
+	if len(items) == 0 {
 		items = append(items, classify)
 	}
 	return