Browse Source

Merge branch 'pool/532' into debug

Roc 1 year ago
parent
commit
9f30944f47
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/chart/correlation/chart_info.go

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

@@ -446,7 +446,7 @@ func GetRollingCorrelationChartDataByEdbInfo(edbInfoMappingA, edbInfoMappingB *c
 	// 计算 每个日期的相关性值
 	{
 		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) {