fixes bug#22251

qua: 
dev: Valdevir

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@107018 d1611594-4594-4d17-8e1d-87c2c4800839
master
celio 2021-06-02 17:45:43 +00:00
parent 5d81a41832
commit b210a71596
2 changed files with 9 additions and 1 deletions

View File

@ -127,6 +127,8 @@ public class Constantes {
public static final String SMTP_COMISSAO_HOST = "SMTP_COMISSAO_HOST"; public static final String SMTP_COMISSAO_HOST = "SMTP_COMISSAO_HOST";
public static final String SMTP_COMISSAO_AUTENTICACAO = "SMTP_COMISSAO_AUTENTICACAO";
public static final String SMTP_COMISSAO_PASS = "SMTP_COMISSAO_PASS"; public static final String SMTP_COMISSAO_PASS = "SMTP_COMISSAO_PASS";
public static final String SMTP_COMISSAO_PORT = "SMTP_COMISSAO_PORT"; public static final String SMTP_COMISSAO_PORT = "SMTP_COMISSAO_PORT";

View File

@ -1325,6 +1325,12 @@ public class CalculoComissaoServiceImpl implements CalculoComissaoService {
} }
emailConfigVO.setSmtp(constante.getValorconstante()); emailConfigVO.setSmtp(constante.getValorconstante());
constante = constanteService.buscarPorNomeConstante(Constantes.SMTP_COMISSAO_AUTENTICACAO);
if(constante == null) {
return null;
}
emailConfigVO.setAutenticacao(BooleanUtils.toBoolean(constante.getValorconstante()));
constante = constanteService.buscarPorNomeConstante(Constantes.SMTP_COMISSAO_PASS); constante = constanteService.buscarPorNomeConstante(Constantes.SMTP_COMISSAO_PASS);
if(constante == null) { if(constante == null) {
return null; return null;