Sfoglia il codice sorgente

Merge branch 'pool/532' into debug

Roc 2 anni fa
parent
commit
af849bffda
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      services/data/correlation/chart_info.go

+ 1 - 1
services/data/correlation/chart_info.go

@@ -437,7 +437,7 @@ func GetRollingCorrelationChartDataByEdbInfo(edbInfoMappingA, edbInfoMappingB *m
 	// 计算 每个日期的相关性值
 	{
 		startDateTime, _ := time.ParseInLocation(utils.FormatDate, startDate, time.Local)
-		endDateTime, _ := time.ParseInLocation(utils.FormatDate, endDate, time.Local)
+		endDateTime, _ := time.ParseInLocation(utils.FormatDate, baseEdbInfo.EndDate, time.Local)
 		endDateTime = endDateTime.AddDate(0, 0, -(calculateDay - 1))
 
 		for currDay := startDateTime; !currDay.After(endDateTime); currDay = currDay.AddDate(0, 0, 1) {