|
@@ -891,15 +891,15 @@ func handleResultData(regionType string, yDataList []models.YData, futureGoodEdb
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //xDataList = xDataList[0:maxI]
|
|
|
- //for yIndex, yData := range newYDataList {
|
|
|
- // if len(yData.XEdbInfoIdList) > maxI {
|
|
|
- // newYDataList[yIndex].XEdbInfoIdList = yData.XEdbInfoIdList[0:maxI]
|
|
|
- // }
|
|
|
- // if len(yData.Value) > maxI {
|
|
|
- // newYDataList[yIndex].Value = yData.Value[0:maxI]
|
|
|
- // }
|
|
|
- //}
|
|
|
+ xDataList = xDataList[0:maxI]
|
|
|
+ for yIndex, yData := range newYDataList {
|
|
|
+ if len(yData.XEdbInfoIdList) > maxI {
|
|
|
+ newYDataList[yIndex].XEdbInfoIdList = yData.XEdbInfoIdList[0:maxI]
|
|
|
+ }
|
|
|
+ if len(yData.Value) > maxI {
|
|
|
+ newYDataList[yIndex].Value = yData.Value[0:maxI]
|
|
|
+ }
|
|
|
+ }
|
|
|
return
|
|
|
}
|
|
|
|