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

Merge branch 'dev_neo3' into 'dev'

Dev neo3

See merge request root/atms!102
parents b5fbbe27 ec87c252
...@@ -36,7 +36,6 @@ public class BBParasBo { ...@@ -36,7 +36,6 @@ public class BBParasBo {
this.cellTemplateId = cellTemplateId; this.cellTemplateId = cellTemplateId;
} }
} }
public void putPeriodCellTempate(Integer period, Long cellTemplateId) { public void putPeriodCellTempate(Integer period, Long cellTemplateId) {
...@@ -130,7 +129,7 @@ public class BBParasBo { ...@@ -130,7 +129,7 @@ public class BBParasBo {
builder.append(")"); builder.append(")");
return builder.toString(); return builder.toString();
} }
return ""; return "0";
} }
@Override @Override
......
...@@ -61,12 +61,14 @@ public class BB extends FunctionBase implements FreeRefFunction { ...@@ -61,12 +61,14 @@ public class BB extends FunctionBase implements FreeRefFunction {
dataSource.add(nullCellDto); dataSource.add(nullCellDto);
BigDecimal cellValue = BigDecimal.ZERO; BigDecimal cellValue = BigDecimal.ZERO;
CellTemplatePerGroupDto cellTemplateData = agent.getCellTemplateGroupDto(formulaContext.getReportTemplateGroupID(),
formulaContext.getProjectID()).stream().filter(dto -> dto.getRowIndex() == bo.getColumnIndex() - 1
&& dto.getColumnIndex() == bo.getColumnIndex() - 1).findFirst().orElseThrow(() -> {
return Exceptions.BB_CELL_TEMP_NULL;
});
try { try {
CellTemplatePerGroupDto cellTemplateData = agent.getCellTemplateGroupDto(formulaContext.getReportTemplateGroupID(),
formulaContext.getProjectID()).stream().filter(dto -> dto.getRowIndex() == bo.getRowIndex() - 1
&& dto.getColumnIndex() == bo.getColumnIndex() - 1 && dto.getReportCode().equals(bo.getReportCode()))
.findFirst().orElseThrow(() -> {
return Exceptions.BB_CELL_TEMP_NULL;
});
MyAsserts.assertNotNull(cellTemplateData, Exceptions.BB_CELL_TEMP_NULL); MyAsserts.assertNotNull(cellTemplateData, Exceptions.BB_CELL_TEMP_NULL);
nullCellDto.fixedWithGroup(cellTemplateData); nullCellDto.fixedWithGroup(cellTemplateData);
......
...@@ -712,7 +712,7 @@ ...@@ -712,7 +712,7 @@
cell_template.comment cell_template.comment
FROM period_cell_template cell_template FROM period_cell_template cell_template
JOIN period_cell_template_config config JOIN period_cell_template_config config
ON cell_template.cell_template_id = config.cell_template_id ON ( cell_template.cell_template_id = config.cell_template_id AND cell_template.period = config.period )
WHERE cell_template.report_template_id IN WHERE cell_template.report_template_id IN
<foreach close=")" collection="list" index="index" item="item" open="(" separator=","> <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
#{item} #{item}
......
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