zwxi 9 月之前
父節點
當前提交
1921c932fa
共有 1 個文件被更改,包括 2 次插入3 次删除
  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)
 			startTime, _ := time.Parse(utils.FormatDate, mappingItem.StartDate)
 			for i := len(quarterDataList) - 1; i > len(quarterDataList)-2 && i > 0; i-- {
 			for i := len(quarterDataList) - 1; i > len(quarterDataList)-2 && i > 0; i-- {
 				rightMappingItem := mappingItem
 				rightMappingItem := mappingItem
@@ -3500,7 +3499,7 @@ func SeasonChartData(dataList []*data_manage.ChartEdbInfoMapping, seasonExtraCon
 				dataResp.RightAxis.EdbInfoList = append(dataResp.RightAxis.EdbInfoList, rightMappingItem)
 				dataResp.RightAxis.EdbInfoList = append(dataResp.RightAxis.EdbInfoList, rightMappingItem)
 				dataResp.RightAxis.SeasonRightAxis = seasonConfig.RightAxis
 				dataResp.RightAxis.SeasonRightAxis = seasonConfig.RightAxis
 			}
 			}
-		//}
+		}
 	}
 	}
 
 
 	return
 	return