Browse Source

Merge branch 'refs/heads/eta_2.1.9_index_phase_shift_0909@guomengyuan' into debug

gmy 6 months ago
parent
commit
b5f951fc17

+ 1 - 1
models/edb_data_calculate_phase_shift.go

@@ -285,7 +285,7 @@ func refreshAllCalculatePhaseShift(to orm.TxOrmer, edbInfoId, source, subSource,
 		if moveType != 2 {
 			periods := dataLen - i + formulaInt - 1
 			if periods < dataLen {
-				newIndex := dataList[i]
+				newIndex := dataList[i-1]
 				resultMap[newIndex.DataTime] = currentIndex.Value
 			} else {
 				// 新数据须根据频度补充key

+ 1 - 1
models/predict_edb_data_calculate_phase_shift.go

@@ -240,7 +240,7 @@ func refreshAllPredictCalculatePhaseShift(to orm.TxOrmer, edbInfoId, source, sub
 		if moveType != 2 {
 			periods := dataLen - i + formulaInt - 1
 			if periods < dataLen {
-				newIndex := dataList[i]
+				newIndex := dataList[i-1]
 				resultMap[newIndex.DataTime] = currentIndex.Value
 			} else {
 				// 新数据须根据频度补充key