|
@@ -461,7 +461,8 @@ func GetRollingCorrelationChartDataByEdbInfo(edbInfoMappingA, edbInfoMappingB *E
|
|
|
// 计算 每个日期的相关性值
|
|
|
{
|
|
|
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) {
|
|
|
coordinateData := make([]utils.Coordinate, 0)
|