Commit b44cc9f0 authored by neo.wang's avatar neo.wang

Merge branch 'dev_neo' into 'dev'

Dev neo

See merge request root/atms!71
parents 2487f476 900b46ef
...@@ -20,7 +20,7 @@ public class BBParasBo { ...@@ -20,7 +20,7 @@ public class BBParasBo {
reportCode = resolverString(args, ec, 0); reportCode = resolverString(args, ec, 0);
columnIndex = resolverInteger(args, ec, 1); columnIndex = resolverInteger(args, ec, 1);
rowIndex = resolverInteger(args, ec, 2); rowIndex = resolverInteger(args, ec, 2);
period = args.length == 4 ? resolverInteger(args, ec, 3) : 0; period = args.length >= 4 ? resolverInteger(args, ec, 3) : 0;
year = args.length == 5 ? resolverInteger(args, ec, 4) : 0; year = args.length == 5 ? resolverInteger(args, ec, 4) : 0;
} }
......
...@@ -48,7 +48,7 @@ public class BB extends FunctionBase implements FreeRefFunction { ...@@ -48,7 +48,7 @@ public class BB extends FunctionBase implements FreeRefFunction {
public BigDecimal bb(BBParasBo bo) throws Exception { public BigDecimal bb(BBParasBo bo) throws Exception {
try (CloseableFormulaDataSource closeDataSource = new CloseableFormulaDataSource(formulaContext.getFormulaAgent())) { try (CloseableFormulaDataSource closeDataSource = new CloseableFormulaDataSource(formulaContext.getFormulaAgent())) {
CurrentPeriodBo curPeriod = CurrentPeriodBo.getPeriod(bo.getPeriod().intValue(), formulaContext.getPeriod()); CurrentPeriodBo curPeriod = CurrentPeriodBo.getPeriod(bo.getPeriod().intValue(), formulaContext.getPeriod());
curPeriod.fixedCurYear(getYear(curPeriod.getCurYear())); curPeriod.fixedCurYear(getYear(bo.getYear()));
ReportCellDataSourceDto nullCellDto = ReportCellDataSourceDto.nullDataSource(bo, curPeriod); ReportCellDataSourceDto nullCellDto = ReportCellDataSourceDto.nullDataSource(bo, curPeriod);
closeDataSource.addDS(nullCellDto); closeDataSource.addDS(nullCellDto);
......
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