|
@@ -174,7 +174,7 @@ func addPredictCalculate(br *models.BaseResponse, req models.EdbInfoCalculateSav
|
|
|
}
|
|
|
|
|
|
|
|
|
- ok, _ := services.CheckFormula2(edbInfoList, formulaMap, calculateFormula, edbInfoIdBytes)
|
|
|
+ ok, _ := models.CheckFormula2(edbInfoList, formulaMap, calculateFormula, edbInfoIdBytes)
|
|
|
if !ok {
|
|
|
br.Msg = "生成计算指标失败,请使用正确的计算公式"
|
|
|
return
|
|
@@ -409,7 +409,7 @@ func editPredictCalculate(br *models.BaseResponse, req models.EdbInfoCalculateSa
|
|
|
}
|
|
|
|
|
|
|
|
|
- ok, _ := services.CheckFormula2(edbInfoList, formulaMap, calculateFormula, edbInfoIdBytes)
|
|
|
+ ok, _ := models.CheckFormula2(edbInfoList, formulaMap, calculateFormula, edbInfoIdBytes)
|
|
|
if !ok {
|
|
|
br.Msg = "生成计算指标失败,请使用正确的计算公式"
|
|
|
return
|