|
@@ -132,9 +132,9 @@ func SavePredictCalculateNszydpjjs(reqEdbInfoId, classifyId int, edbName, freque
|
|
existCondition += " AND edb_info_id=? AND from_edb_info_id=? "
|
|
existCondition += " AND edb_info_id=? AND from_edb_info_id=? "
|
|
existPars = append(existPars, edbInfo.EdbInfoId, fromEdbInfo.EdbInfoId)
|
|
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
|
|
return
|
|
}
|
|
}
|
|
if count > 0 && oldCalculateFormula == formula { // 指标未被替换,同时N值未修改,无需重新计算
|
|
if count > 0 && oldCalculateFormula == formula { // 指标未被替换,同时N值未修改,无需重新计算
|