Skip to content

Commit

Permalink
P4PADEV-1658 align code whith related task
Browse files Browse the repository at this point in the history
  • Loading branch information
domenicogi committed Dec 20, 2024
1 parent 55a21e7 commit 9aea0b7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private List<Path> retrieveFiles(IngestionFlowFileDTO ingestionFlowFileDTO) thro
private TreasuryIufResult parseData(Path ingestionFlowFilePath, IngestionFlowFileDTO finalIngestionFlowFileDTO) {
File ingestionFlowFile=ingestionFlowFilePath.toFile();
Map<String, List<Pair<TreasuryDTO, FlussoTesoreriaPIIDTO>>> treasuryDtoMap = null;
String versione = null;
String versione = TreasuryValidatorService.V_161;
Set<String> iufList = new HashSet<>();

it.gov.pagopa.payhub.activities.xsd.treasury.opi14.FlussoGiornaleDiCassa flussoGiornaleDiCassa14 = null;
Expand All @@ -101,12 +101,13 @@ private TreasuryIufResult parseData(Path ingestionFlowFilePath, IngestionFlowFil
try {
flussoGiornaleDiCassa14 = treasuryUnmarshallerService.unmarshalOpi14(ingestionFlowFile);
log.debug("file flussoGiornaleDiCassa with Id {} parsed successfully ", flussoGiornaleDiCassa14.getId());
versione = TreasuryValidatorService.V_14;
} catch (Exception exception) {
log.info("file flussoGiornaleDiCassa parsing error with opi 1.4 format {} ", exception.getMessage());
throw new TreasuryOpiInvalidFileException("Cannot parse treasury Opi file " + ingestionFlowFile);
}
} else
versione = TreasuryValidatorService.V_161;
}


assert versione != null;
// if (!treasuryValidatorService.validatePageSize(flussoGiornaleDiCassa14, flussoGiornaleDiCassa161, zipFileSize, versione)) {
Expand Down

0 comments on commit 9aea0b7

Please sign in to comment.