Kaynağa Gözat

fix:修改可能用到季节性图的至今n年

zqbao 2 ay önce
ebeveyn
işleme
4e70afb3ea
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      services/data/chart_info_excel_balance.go

+ 3 - 0
services/data/chart_info_excel_balance.go

@@ -79,6 +79,9 @@ func GetBalanceExcelChartDetail(chartInfo *models.ChartInfo, mappingListTmp []*e
 			}
 		}
 	}
+	if chartType == utils.CHART_TYPE_SEASON && dateType == utils.DateTypeNYears {
+		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 {