Commit 4e91d1ae authored by neo's avatar neo

[bugfix] fixed config bb cpt formla

parent 6dff0c5f
...@@ -524,8 +524,8 @@ public class ReportGeneratorImpl extends VatAbstractService implements ReportGen ...@@ -524,8 +524,8 @@ public class ReportGeneratorImpl extends VatAbstractService implements ReportGen
Set<PCTEntity> parameter = new HashSet<>(); Set<PCTEntity> parameter = new HashSet<>();
periodCellTemplateConfigExtendDtos.forEach(p -> { periodCellTemplateConfigExtendDtos.forEach(p -> {
String formula = p.getPeriodCellTemplateConfig().getFormula(); String formula = p.getFormula();
String parsedFormula = p.getPeriodCellTemplateConfig().getParsedFormula(); String parsedFormula = p.getParsedFormula();
if (formula.contains("BB(")) { if (formula.contains("BB(")) {
logger.debug("period cell template config contains bb formula {}", formula); logger.debug("period cell template config contains bb formula {}", formula);
if (parsedFormula.contains("PCT(")) { if (parsedFormula.contains("PCT(")) {
...@@ -543,7 +543,7 @@ public class ReportGeneratorImpl extends VatAbstractService implements ReportGen ...@@ -543,7 +543,7 @@ public class ReportGeneratorImpl extends VatAbstractService implements ReportGen
} }
} }
if (!parsedPCTs.isEmpty()) { if (!parsedPCTs.isEmpty()) {
configMapToPCTs.put(p.getPeriodCellTemplateConfig(), parsedPCTs); configMapToPCTs.put(p, parsedPCTs);
} }
parsedPCTs.stream().forEach(m -> { parsedPCTs.stream().forEach(m -> {
...@@ -583,17 +583,6 @@ public class ReportGeneratorImpl extends VatAbstractService implements ReportGen ...@@ -583,17 +583,6 @@ public class ReportGeneratorImpl extends VatAbstractService implements ReportGen
}); });
} }
periodCellTemplateConfigExtendDtos.forEach(p->{
String formula = p.getFormula();
String parsedFormula = p.getParsedFormula();
if (formula.contains("BB(")) {
logger.debug("period cell template config contains bb formula {}", formula);
if (parsedFormula.contains("PCT(")) {
p.setParsedFormula(p.getPeriodCellTemplateConfig().getParsedFormula());
}
}
});
} }
private String convertListToString(List<String> list) { private String convertListToString(List<String> list) {
......
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