|
@@ -1058,6 +1058,10 @@ func (this *ChartInfoController) ChartInfoDetail() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if chartType == utils.CHART_TYPE_SEASON && dateType == utils.DateTypeNYears {
|
|
|
+ // 季度图,的至今N年,需要特殊处理,将日期范围扩大到下一年
|
|
|
+ dateMax = time.Date(dateMax.Year()+1, 1, 1, 0, 0, 0, 0, time.Local)
|
|
|
+ }
|
|
|
// 开始/结束日期
|
|
|
startDate, endDate = utils.GetDateByDateTypeV2(dateType, startDate, endDate, startYear, dateMax)
|
|
|
|
|
@@ -2758,6 +2762,10 @@ func GetChartInfoDetailFromUniqueCode(chartInfo *data_manage.ChartInfoView, isCa
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if chartInfo.ChartType == utils.CHART_TYPE_SEASON && dateType == utils.DateTypeNYears {
|
|
|
+ // 季度图,的至今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 //图表额外数据参数
|