Commit 96bd74d8 authored by frank.xa.zhang's avatar frank.xa.zhang

[fixed issues]add code for fwnd, need debug later

parent 4c98efa8
......@@ -36,10 +36,10 @@ public class FWND extends FunctionBase implements FreeRefFunction {
example.createCriteria().andOrganizationIDEqualTo(formulaContext.getOrganizationID()).andYearEqualTo(year);
List<Project> projects = SpringContextUtil.projectMapper.selectByExample(example);
if (projects != null && projects.size() > 0) {
saveFormulaBlock(0, ec, formulaExpression, new BigDecimal("1"), 0);
saveFormulaBlock(0, ec, formulaExpression, new BigDecimal("1"), 0L);
return new NumberEval(1);
} else {
saveFormulaBlock(0, ec, formulaExpression, new BigDecimal("0"), 0);
saveFormulaBlock(0, ec, formulaExpression, new BigDecimal("0"), 0L);
return new NumberEval(0);
}
}
......
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