FINERACT-2447: Bulk Import processing result file not working on PostgreSQL

This commit is contained in:
ap200506
2026-01-26 14:50:21 +01:00
committed by Adam Saghy
parent 52aaad9d25
commit f2630fb712
@@ -247,7 +247,7 @@ public class BulkImportWorkbookServiceImpl implements BulkImportWorkbookService
final ImportTemplateLocationMapper importTemplateLocationMapper = new ImportTemplateLocationMapper();
final String sql = "select " + importTemplateLocationMapper.schema();
return this.jdbcTemplate.queryForObject(sql, importTemplateLocationMapper, new Object[] { Integer.parseInt(importDocumentId) }); // NOSONAR
return this.jdbcTemplate.queryForObject(sql, importTemplateLocationMapper, new Object[] { Long.parseLong(importDocumentId) }); // NOSONAR
}
@Override
@@ -255,7 +255,8 @@ public class BulkImportWorkbookServiceImpl implements BulkImportWorkbookService
this.securityContext.authenticatedUser();
final ImportTemplateLocationMapper importTemplateLocationMapper = new ImportTemplateLocationMapper();
final String sql = "select " + importTemplateLocationMapper.schema();
DocumentData documentData = this.jdbcTemplate.queryForObject(sql, importTemplateLocationMapper, new Object[] { importDocumentId }); // NOSONAR
DocumentData documentData = this.jdbcTemplate.queryForObject(sql, importTemplateLocationMapper,
new Object[] { Long.parseLong(importDocumentId) }); // NOSONAR
return buildResponse(documentData);
}