@@ -344,8 +344,8 @@ func (obj LjzNczj) refresh(to orm.TxOrmer, edbInfoId, source int, edbInfo, fromE
}
if itemDate.Equal(currTime) {
- valueMap[itemDate] = yearMap[year]
- dateList = append(dateList, itemDate)
+ tmpDateDataMap[itemDate] = yearMap[year]
+ tmpDateList = append(tmpDateList, itemDate)
for _, currTime := range tmpDateList {
@@ -85,6 +85,13 @@ func HandleDataByLinearRegression(edbInfoDataList []*EdbInfoSearchData, handleDa
+ // 最后将自己赋值
+ newList = append(newList, &EdbInfoSearchData{
+ EdbDataId: v.EdbDataId,
+ DataTime: v.DataTime,
+ Value: v.Value,
+ })
+
startEdbInfoData = v
@@ -336,8 +336,8 @@ func (obj PredictLjzNczj) refresh(to orm.TxOrmer, edbInfoId, source int, edbInfo