慢sql提醒
This commit is contained in:
parent
2fad3c6c7c
commit
0ac2fd248e
|
|
@ -1 +1 @@
|
|||
formulaRunOvertimeThreshold=
|
||||
formulaRunOvertimeThreshold=10
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue