rinominato il file e gestita anomalia come errore
This commit is contained in:
@@ -184,9 +184,11 @@ public class DocumentiImporter extends BaseEntityImporter<List<EntityBase>> impl
|
||||
case APULIA:
|
||||
fileNameDest = orginalFileName + "_" +
|
||||
new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".txt";
|
||||
break;
|
||||
case PAZIENZA_RIFORD:
|
||||
fileNameDest = orginalFileName + "_" +
|
||||
new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".xlsx";
|
||||
break;
|
||||
default:
|
||||
fileNameDest = super.renameFile(orginalFileName, entities);
|
||||
}
|
||||
|
||||
@@ -1029,7 +1029,7 @@ public class DocumentiAcquistoImportService {
|
||||
|
||||
if (result == null){
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user