Roc vor 2 Jahren
Ursprung
Commit
e9704265e3
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      models/predict_edb_data_calculate_nszydbpjjs.go

+ 3 - 3
models/predict_edb_data_calculate_nszydbpjjs.go

@@ -132,9 +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)
 
-		count, err := GetEdbInfoCalculateCountByCondition(existCondition, existPars)
-		if err != nil {
-			err = errors.New("判断指标是否改变失败,Err:" + err.Error())
+		count, tmpErr := GetEdbInfoCalculateCountByCondition(existCondition, existPars)
+		if tmpErr != nil {
+			err = errors.New("判断指标是否改变失败,Err:" + tmpErr.Error())
 			return
 		}
 		if count > 0 && oldCalculateFormula == formula { // 指标未被替换,同时N值未修改,无需重新计算