慢sql提醒

This commit is contained in:
钱涛 2023-08-31 16:22:02 +08:00
parent 2fad3c6c7c
commit 0ac2fd248e
2 changed files with 2 additions and 3 deletions

View File

@ -1 +1 @@
formulaRunOvertimeThreshold=
formulaRunOvertimeThreshold=10

View File

@ -48,7 +48,7 @@ public class FormulaRunServiceImpl extends Service implements FormulaRunService
@Override
public ExcelResult run(ExpressFormula expressFormula, List<FormulaVar> formulaVars, DataCollectionEmployee simpleEmployee) {
ExcelResult result = new ExcelResult(false, "", "");
ExcelResult result = new ExcelResult(false, "", "公式类型异常!");
if (StringUtils.isNotBlank(formulaRunOvertimeThreshold)) {
StopWatch stopWatch = new StopWatch();
stopWatch.start("run " + expressFormula.getName());
@ -69,7 +69,6 @@ public class FormulaRunServiceImpl extends Service implements FormulaRunService
result = runSQL(expressFormula, formulaVars);
}
}
log.error("express execute fail, {} not in ReferenceTypeEnum ", expressFormula.getReferenceType());
return result;
}