eliminate gestione firma
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-02-04 12:17:23 +01:00
parent 65037e6b7f
commit 0a6b1a0f20

View File

@@ -288,18 +288,20 @@ public class ReportProcessor {
}
hm_parameters.put("api_webservices", url);
String firmaUtente;
String sql =
Query.format(
"SELECT id_attach FROM srl_user_attached WHERE user_name = %s", userSession.getUsername());
String idAttach = UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(multiDBTransactionManager.getPrimaryConnection(), sql);
if ( !UtilityString.isNullOrEmpty(idAttach) ) {
firmaUtente = String.format("http://%s/ems-api/downloadStbFileAttachment/%s/firma_utente.png?profileDb=%s",
url, idAttach, multiDBTransactionManager.getPrimaryDatasource().getProfile());
hm_parameters.put("firma_utente", firmaUtente);
}
// if ( userSession.getUsername() != null ) {
// String firmaUtente;
// String sql =
// Query.format(
// "SELECT id_attach FROM srl_user_attached WHERE user_name = %s", userSession.getUsername());
//
// String idAttach = UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(multiDBTransactionManager.getPrimaryConnection(), sql);
//
// if (!UtilityString.isNullOrEmpty(idAttach)) {
// firmaUtente = String.format("http://%s/ems-api/downloadStbFileAttachment/%s/firma_utente.png?profileDb=%s",
// url, idAttach, multiDBTransactionManager.getPrimaryDatasource().getProfile());
// hm_parameters.put("firma_utente", firmaUtente);
// }
// }
completeParameter(jasperDTO, hm_parameters);