Ver código fonte

图例名称

xyxie 1 ano atrás
pai
commit
319eeaa2f3
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      services/data/chart_info.go

+ 2 - 2
services/data/chart_info.go

@@ -868,7 +868,7 @@ func GetSeasonEdbInfoDataListByXDate(dataList []*data_manage.EdbDataList, latest
 			StartDate:   startT,
 			EndDate:     endT,
 			ShowName:    showName,
-			ChartLegend: strconv.Itoa(endT.Year()),
+			ChartLegend: strconv.Itoa(startT.Year()),
 		}
 		dataMap[name] = item
 	}
@@ -1018,7 +1018,7 @@ func GetSeasonEdbInfoDataListByXDateNong(result *data_manage.EdbDataResult, late
 			StartDate:   startT,
 			EndDate:     endT,
 			ShowName:    showName,
-			ChartLegend: strconv.Itoa(endT.Year()),
+			ChartLegend: strconv.Itoa(startT.Year()),
 		}
 		dataMap[showName] = item
 	}