Skip to content

Commit

Permalink
fix: lost code
Browse files Browse the repository at this point in the history
  • Loading branch information
M4rc0Russ0 committed Nov 15, 2024
1 parent bafbd0b commit 530130a
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,22 @@ public ReconciliationResponseView allReconciliationTransaction(ReconciliationFil
val transactions = accountingCoreTransactionRepository.findAllReconciliationSpecial(body.getReconciliationRejectionCode(), body.getDateFrom(), body.getLimit(), body.getPage()).stream()
.filter(o -> {
if (o[0] instanceof TransactionEntity) {
if (!txDuplicated.contains(o[0])) {
txDuplicated.add(o[0]);
if (!txDuplicated.contains(((TransactionEntity) o[0]).getId())) {
txDuplicated.add(((TransactionEntity) o[0]).getId());
return true;
}
}
if (o[1] instanceof ReconcilationViolation) {
return true;
if (!txDuplicated.contains(((ReconcilationViolation) o[1]).getTransactionId())) {
txDuplicated.add(((ReconcilationViolation) o[1]).getTransactionId());
return true;
}
}

return false;
})
.map(this::getReconciliationTransactionsSelector)
.collect(toSet());
.sorted(Comparator.comparing(TransactionReconciliationTransactionsView::getId))
.collect(Collectors.toCollection(LinkedHashSet::new));

return new ReconciliationResponseView(
(long) accountingCoreTransactionRepository.findAllReconciliationSpecialCount(body.getReconciliationRejectionCode(), body.getDateFrom(), body.getLimit(), body.getPage()).size(),
Expand Down

0 comments on commit 530130a

Please sign in to comment.