Commit 649519d1 authored by neo's avatar neo

[Bugfix] fixed set manual pct wrong

parent 8f2d4576
......@@ -671,11 +671,16 @@ public class ReportGeneratorImpl {
BigDecimal result = new BigDecimal("0");
String resultStr = "";
for (PCTEntity entity : entities) {
if (manuaPctResults.contains(entity)) {
manualEntities.add(entity);
if (manuaPctResults != null && !manuaPctResults.isEmpty() && manuaPctResults.contains(entity)) {
for (PCTEntity manual : manuaPctResults) {
if (manual.equals(entity)) {
manualEntities.add(manual);
}
}
} else {
result = pctCache.containsKey(entity) ? result.add(pctCache.get(entity)) : result;
}
}
resultStr = result.toString();
if (!manualEntities.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