瀏覽代碼

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

Roc 2 年之前
父節點
當前提交
9d45577438
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      models/predict_edb_data_calculate_nszydbpjjs.go

+ 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())