瀏覽代碼

Merge branch 'bzq1/bug_season' of eta_server/eta_api into master

baoziqiang 2 周之前
父節點
當前提交
f36b6125a0
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      controllers/data_manage/chart_info.go

+ 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 {