Browse Source

fix:插值法修复

Roc 1 năm trước cách đây
mục cha
commit
6f6908546b
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      services/data/correlation/chart_info.go

+ 7 - 0
services/data/correlation/chart_info.go

@@ -90,6 +90,13 @@ func HandleDataByLinearRegression(originList []*data_manage.EdbDataList, handleD
 			}
 		}
 
+		// 最后将自己赋值
+		newList = append(newList, &data_manage.EdbDataList{
+			EdbDataId: v.EdbDataId,
+			DataTime:  v.DataTime,
+			Value:     v.Value,
+		})
+
 		startEdbInfoData = v
 	}
 	return