zqbao 1 сар өмнө
parent
commit
aae1f156af

+ 3 - 0
controllers/data_manage/chart_info.go

@@ -1615,6 +1615,9 @@ func (this *ChartInfoController) ChartInfoDetailV2() {
 			}
 		}
 	}
+	if dateType == utils.DateTypeNYears && chartInfo.ChartType == utils.CHART_TYPE_SEASON {
+		dateMax = time.Date(dateMax.Year()+1, 1, 1, 0, 0, 0, 0, time.Local)
+	}
 	startDate, endDate = utils.GetDateByDateTypeV2(dateType, startDate, endDate, startYear, dateMax)
 
 	if chartInfo.ChartType == 2 {