rinominato il file e gestita anomalia come errore

This commit is contained in:
2024-10-17 11:40:49 +02:00
parent f4b38907e2
commit 26089db02f
2 changed files with 3 additions and 1 deletions

View File

@@ -184,9 +184,11 @@ public class DocumentiImporter extends BaseEntityImporter<List<EntityBase>> impl
case APULIA: case APULIA:
fileNameDest = orginalFileName + "_" + fileNameDest = orginalFileName + "_" +
new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".txt"; new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".txt";
break;
case PAZIENZA_RIFORD: case PAZIENZA_RIFORD:
fileNameDest = orginalFileName + "_" + fileNameDest = orginalFileName + "_" +
new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".xlsx"; new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".xlsx";
break;
default: default:
fileNameDest = super.renameFile(orginalFileName, entities); fileNameDest = super.renameFile(orginalFileName, entities);
} }

View File

@@ -1029,7 +1029,7 @@ public class DocumentiAcquistoImportService {
if (result == null){ if (result == null){
anomalie.add( anomalie.add(
AnomalieDTO.error(String.format("Nessun deposito agganciato all'intercode %s", rifOrdApulia.getCodicePv() )) AnomalieDTO.info(String.format("Nessun deposito agganciato all'intercode %s", rifOrdApulia.getCodicePv() ))
); );
continue; continue;
} }