执行运算前先校验参数是否为空

topo_dev
DESKTOP-DDTUS3E\yaxin 6 months ago
parent 719e5b9ee0
commit 7af2fd841d

@ -370,7 +370,7 @@ public class ModelServiceImpl implements ModelService {
}
}
}
if (CalculationUtil.evaluateExpression(String.valueOf(count), ruleCondition.getOperator(), ruleCondition.getValue())) {
if (StringUtils.isNotEmpty(ruleCondition.getOperator()) && StringUtils.isNotEmpty(ruleCondition.getValue()) && CalculationUtil.evaluateExpression(String.valueOf(count), ruleCondition.getOperator(), ruleCondition.getValue())) {
flag = true;
}
modelAtomicResultService.saveOrUpdate(atomicResult);

Loading…
Cancel
Save