|
@@ -14,6 +14,7 @@ import (
|
|
|
"hongze/hongze_yb/services/chart"
|
|
|
"hongze/hongze_yb/utils"
|
|
|
"math"
|
|
|
+ "strings"
|
|
|
"time"
|
|
|
)
|
|
|
|
|
@@ -496,7 +497,9 @@ func GetRollingCorrelationChartDataByEdbInfo(edbInfoMappingA, edbInfoMappingB *c
|
|
|
{
|
|
|
startDateTime, _ := time.ParseInLocation(utils.FormatDate, startDate, time.Local)
|
|
|
if endDate == `` {
|
|
|
- endDate = baseEdbInfo.EndDate
|
|
|
+ // 因为时间格式是:2023-07-19T00:00:00+08:00;所以需要分开
|
|
|
+ endDateList := strings.Split(baseEdbInfo.EndDate, "T")
|
|
|
+ endDate = endDateList[0]
|
|
|
}
|
|
|
endDateTime, _ := time.ParseInLocation(utils.FormatDate, endDate, time.Local)
|
|
|
endDateTime = endDateTime.AddDate(0, 0, -(calculateDay - 1))
|