zwxi 9 mesi fa
parent
commit
1921c932fa
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 2 3
      services/data/chart_info.go

+ 2 - 3
services/data/chart_info.go

@@ -3483,8 +3483,7 @@ func SeasonChartData(dataList []*data_manage.ChartEdbInfoMapping, seasonExtraCon
 		}
 
 		// 自定义右轴
-		//if seasonConfig.RightAxis.IndicatorType == 1 {
-			//dataResp.RightAxis.EdbInfoList = quarterDataList[0].DataList
+		if seasonConfig.RightAxis.IndicatorType == 1 {
 			startTime, _ := time.Parse(utils.FormatDate, mappingItem.StartDate)
 			for i := len(quarterDataList) - 1; i > len(quarterDataList)-2 && i > 0; i-- {
 				rightMappingItem := mappingItem
@@ -3500,7 +3499,7 @@ func SeasonChartData(dataList []*data_manage.ChartEdbInfoMapping, seasonExtraCon
 				dataResp.RightAxis.EdbInfoList = append(dataResp.RightAxis.EdbInfoList, rightMappingItem)
 				dataResp.RightAxis.SeasonRightAxis = seasonConfig.RightAxis
 			}
-		//}
+		}
 	}
 
 	return