Prechádzať zdrojové kódy

fix:N数值移动平均计算指标最近值修复

Roc 2 rokov pred
rodič
commit
9d45577438

+ 3 - 0
models/predict_edb_data_calculate_nszydbpjjs.go

@@ -132,6 +132,9 @@ func SavePredictCalculateNszydpjjs(reqEdbInfoId, classifyId int, edbName, freque
 		existCondition += " AND edb_info_id=? AND from_edb_info_id=? "
 		existPars = append(existPars, edbInfo.EdbInfoId, fromEdbInfo.EdbInfoId)
 
+		latestDateStr = edbInfo.LatestDate
+		latestValue = edbInfo.LatestValue
+
 		count, tmpErr := GetEdbInfoCalculateCountByCondition(existCondition, existPars)
 		if tmpErr != nil {
 			err = errors.New("判断指标是否改变失败,Err:" + tmpErr.Error())