Skip to content

Commit

Permalink
Cambiata implementazione sulla ricerca delle variazioni al PdG
Browse files Browse the repository at this point in the history
  • Loading branch information
mspasiano committed Nov 6, 2023
1 parent cbf0c05 commit fd41c7f
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,7 @@ public List<Integer> findVariazioniPresenti(Integer esercizio, String tiSigned,
}
final Optional<StorageObject> storageObjectByPath = Optional.ofNullable(getStorageObjectByPath(basePath));
if (storageObjectByPath.isPresent() && Optional.ofNullable(cds).isPresent() && !showAll) {
return getChildren(storageObjectByPath.get().getKey()).stream()
.map(storageObject -> getChildren(storageObject.getKey()))
.collect(ArrayList::new, List::addAll, List::addAll)
.stream()
.map(StorageObject.class::cast)
return getChildren(storageObjectByPath.get().getKey(), -1).stream()
.filter(storageObject -> storageObject.getPropertyValue(StoragePropertyNames.OBJECT_TYPE_ID.value()).equals(SIGLAStoragePropertyNames.VARPIANOGEST_DOCUMENT.value()))
.filter(storageObject -> {
if (Optional.ofNullable(variazionePdg).isPresent()) {
Expand Down

0 comments on commit fd41c7f

Please sign in to comment.