|
@@ -4673,7 +4673,9 @@ func (this *ChartInfoController) EdbInfoDataSeasonal() {
|
|
|
}
|
|
|
var latestDateT time.Time
|
|
|
if edbInfo.LatestDate != "" {
|
|
|
+ // 季节性图需要特殊处理最近N年数据
|
|
|
latestDateT, _ = time.Parse(utils.FormatDate, edbInfo.LatestDate)
|
|
|
+ latestDateT = time.Date(latestDateT.Year()+1, 1, 1, 0, 0, 0, 0, time.Local)
|
|
|
}
|
|
|
|
|
|
startDate, endDate = utils.GetDateByDateTypeV2(dateType, startDate, endDate, startYear, latestDateT)
|