Skip to content

Commit

Permalink
EP-4672 (#1570)
Browse files Browse the repository at this point in the history
  • Loading branch information
oplekal authored Feb 14, 2025
1 parent 33356ac commit 2a9aa37
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ private List<PerusteenMuutostietoDto> filterTapahtumat(List<PerusteenMuokkaustie
// vain relevantit luonti-tapahtumat
List<PerusteenMuokkaustietoDto> finalLuonnit = luonnit.stream()
.filter(tieto -> poistot.stream().noneMatch(poisto -> poisto.getKohdeId().equals(tieto.getKohdeId())))
.peek(tieto -> {
paivitykset.stream()
.filter(paivitys -> paivitys.getKohdeId().equals(tieto.getKohdeId()))
.findFirst().ifPresent(luonninJalkeenPaivitetty -> tieto.setNimi(luonninJalkeenPaivitetty.getNimi()));
})
.collect(Collectors.toList());
checkEmptyNames(finalLuonnit);

Expand Down

0 comments on commit 2a9aa37

Please sign in to comment.