Răsfoiți Sursa

Merge branch 'chart/12.0' into debug

Roc 2 ani în urmă
părinte
comite
f7393bef2b
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      services/chart/chart_info.go

+ 2 - 2
services/chart/chart_info.go

@@ -522,8 +522,6 @@ func GetChartEdbData(chartInfoId, chartType int, calendar, startDate, endDate st
 		}
 		dataList := make([]*edbDataModel.EdbDataList, 0)
 		//fmt.Println("chart:", v.Source, v.EdbInfoId, startDateReal, endDate, ";EdbInfoCategoryType:", v.EdbInfoCategoryType)
-		edbDataListMap[v.EdbInfoId] = dataList
-
 		//var newEdbInfo *edbInfoModel.EdbInfo
 		switch v.EdbInfoCategoryType {
 		case 0:
@@ -542,6 +540,8 @@ func GetChartEdbData(chartInfoId, chartType int, calendar, startDate, endDate st
 		if err != nil {
 			return
 		}
+		edbDataListMap[v.EdbInfoId] = dataList
+
 		if diffSeconds != 0 && v.EdbInfoType == 0 {
 			dataListLen := len(dataList)
 			for i := 0; i < dataListLen; i++ {