Fixes bug#AL-4549

master
Fernando Abimael Alvarez Uc 2024-08-07 13:10:46 -06:00
parent b382513974
commit b358dbb5e6
1 changed files with 6 additions and 5 deletions

View File

@ -219,9 +219,10 @@ public class CotizarExpresoController extends MyGenericForwardComposer{
private void enviarEmail() throws KeyManagementException, NoSuchAlgorithmException, KeyStoreException, ClientProtocolException, IOException, InterruptedException {
ConstanteService constanteService = (ConstanteService) AppContext.getApplicationContext().getBean("constanteService");
String urlAPIRJ = constanteService.buscarPorNomeConstante("URL_API_RJ_INFOBIP").getValorconstante();
String credenciais = constanteService.buscarPorNomeConstante("CREDENCIAIS_API_RJ").getValorconstante();
String tenant = constanteService.buscarPorNomeConstante("TENANT_API_RJ").getValorconstante();
String urlAPIRJ = constanteService.buscarPorNomeConstante("URL_API_RJ_INFOBIP").getValorconstante() == null ? null : constanteService.buscarPorNomeConstante("URL_API_RJ_INFOBIP").getValorconstante();
String credenciais = constanteService.buscarPorNomeConstante("CREDENCIAIS_API_RJ").getValorconstante() == null ? null : constanteService.buscarPorNomeConstante("CREDENCIAIS_API_RJ").getValorconstante();
String tenant = constanteService.buscarPorNomeConstante("TENANT_API_RJ").getValorconstante() == null ? null : constanteService.buscarPorNomeConstante("TENANT_API_RJ").getValorconstante();
String empresaId = constanteService.buscarPorNomeConstante("EMPRESA_NOTIFICACOES_BOLIVARIANO").getValorconstante() == null ? null : constanteService.buscarPorNomeConstante("EMPRESA_NOTIFICACOES_BOLIVARIANO").getValorconstante();
urlAPIRJ = urlAPIRJ.concat("EnviarEmailGenerico");
@ -232,8 +233,8 @@ public class CotizarExpresoController extends MyGenericForwardComposer{
List<NameValuePair> urlParameters = new ArrayList<NameValuePair>();
urlParameters.add(new BasicNameValuePair("emailCliente", expreso.getDescEmail()));
urlParameters.add(new BasicNameValuePair("assunto", Labels.getLabel("expresoController.MSG.asuntoCorreoCotizacion")));
urlParameters.add(new BasicNameValuePair("texto", Labels.getLabel("expresoController.MSG.cuerpoCorreoCotizacion", new Object[] { expreso.getDescNombre() + " " + expreso.getDescApellidos(), "[INSERT LINK HERE CONSTANTE empresa_notificacion_bolivariano]" })));
urlParameters.add(new BasicNameValuePair("empresaId", "10")); // --> Cambiar por constante empresa_notificacion_bolivariano
urlParameters.add(new BasicNameValuePair("texto", Labels.getLabel("expresoController.MSG.cuerpoCorreoCotizacion", new Object[] { expreso.getDescNombre() + " " + expreso.getDescApellidos(), "[INSERT LINK HERE]" })));
urlParameters.add(new BasicNameValuePair("empresaId", empresaId));
UrlEncodedFormEntity params = new UrlEncodedFormEntity(urlParameters, "UTF-8");