浏览代码

Merge branch 'bzq1/eia_steo_custom' of eta_server/eta_api into debug

鲍自强 7 月之前
父节点
当前提交
b8b7e760f8
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      controllers/data_manage/eia_steo.go

+ 5 - 0
controllers/data_manage/eia_steo.go

@@ -175,6 +175,11 @@ func (this *EdbInfoController) EiaSteoData() {
 		}
 
 		total, err := data_manage.GetEiaSteoIndexDataCount(v.IndexCode)
+		if err != nil {
+			br.Msg = "获取数据失败"
+			br.ErrMsg = "获取指标统计数据失败,Err:" + err.Error()
+			return
+		}
 		page := paging.GetPaging(currentIndex, pageSize, total)
 
 		dataList, err := data_manage.GetEiaSteoIndexDataList(v.IndexCode, startSize, pageSize)