Commit b8504a11 authored by neo's avatar neo

[Bugfix] fixe base get value bug not return calcs value

parent e7a7133a
......@@ -200,8 +200,11 @@ public class FunctionBase {
String evalStr = OperandResolver.coerceValueToString(eval);
LOGGER.debug("[Formula_debug] eval other cell value {}", evalStr);
try {
BigDecimal bigDecimal= new BigDecimal(evalStr);
if (!dss.isEmpty()) {
return new BigDecimal(evalStr).add(dss.get(0).getAmount());
return bigDecimal.add(dss.get(0).getAmount());
}else {
return bigDecimal;
}
} catch (Exception e) {
if (!dss.isEmpty())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment