|
@@ -459,6 +459,10 @@ func GetChartInfoDetailFromUniqueCode(chartInfo *models.ChartInfo, key string) (
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if chartInfo.DateType == utils.DateTypeNYears && chartInfo.ChartType == utils.CHART_TYPE_SEASON {
|
|
|
+ // 季节性图表,要特殊处理起始日期, 最近N年
|
|
|
+ dateMax = time.Date(dateMax.Year()+1, 1, 1, 0, 0, 0, 0, time.Local)
|
|
|
+ }
|
|
|
startDate, endDate = utils.GetDateByDateTypeV2(dateType, startDate, endDate, startYear, dateMax)
|
|
|
|
|
|
extraConfigStr := chartInfo.ExtraConfig
|