Roc il y a 2 ans
Parent
commit
8832f70dea
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      services/chart/chart_info.go

+ 2 - 2
services/chart/chart_info.go

@@ -510,8 +510,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:
@@ -530,6 +528,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++ {