Skip to content

Commit

Permalink
Add level sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih committed Jun 14, 2024
1 parent 5fce14c commit 815daa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/spin/report_engine/data/ReportInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ private ReportInfo(PrintFormat printFormat, QueryDefinition queryDefinition) {
AtomicInteger counter = new AtomicInteger();
groupLevels = new HashMap<Integer, PrintFormatItem>();
printFormat.getGroupItems().stream().sorted(Comparator.comparing(PrintFormatItem::getSortSequence)).forEach(group -> {
group.withSortSequence(counter.getAndIncrement());
groupLevels.put(counter.get(), group);
group.withSortSequence(counter.get());
groupLevels.put(counter.getAndIncrement(), group);
});
sortingItems = printFormat.getSortingItems();
printFormatId = printFormat.getPrintFormatId();
Expand Down

0 comments on commit 815daa3

Please sign in to comment.