Fixes bug#al-1301
dev: Celio qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@114116 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
e1cb398e26
commit
75c65c5fa5
|
@ -88,13 +88,15 @@ public class SapServiceImpl implements SapService{
|
||||||
|
|
||||||
if(integrado == null) {
|
if(integrado == null) {
|
||||||
atualizaFechamento(fechamentoCntcorrente.getFechamentocntcorrenteId(), INTEGRACAO_SAP_ERRO);
|
atualizaFechamento(fechamentoCntcorrente.getFechamentocntcorrenteId(), INTEGRACAO_SAP_ERRO);
|
||||||
log.error("Erro no envio/retorno da requisicao para integração SAP do fechamentoID: "+fechamentoCntcorrente.getFechamentocntcorrenteId());
|
log.error("Erro no envio/retorno da requisicao para integra<72><61>o SAP do fechamentoID: "+fechamentoCntcorrente.getFechamentocntcorrenteId());
|
||||||
|
throw new RuntimeException("Erro no envio/retorno da requisicao para integração SAP do fechamentoID: "+fechamentoCntcorrente.getFechamentocntcorrenteId());
|
||||||
}else if(integrado.getString("Integration").equals("S")) {
|
}else if(integrado.getString("Integration").equals("S")) {
|
||||||
atualizaFechamento(fechamentoCntcorrente.getFechamentocntcorrenteId(), INTEGRACAO_SAP_OK);
|
atualizaFechamento(fechamentoCntcorrente.getFechamentocntcorrenteId(), INTEGRACAO_SAP_OK);
|
||||||
contador++;
|
contador++;
|
||||||
}else if(integrado.getString("Integration").equals("E")) {
|
}else if(integrado.getString("Integration").equals("E")) {
|
||||||
atualizaFechamento(fechamentoCntcorrente.getFechamentocntcorrenteId(), INTEGRACAO_SAP_ERRO);
|
atualizaFechamento(fechamentoCntcorrente.getFechamentocntcorrenteId(), INTEGRACAO_SAP_ERRO);
|
||||||
log.warn("Retorno enviado pelo SAP: \r\n"+integrado.getString("Message"));
|
log.warn("Retorno enviado pelo SAP: \r\n"+integrado.getString("Message"));
|
||||||
|
throw new RuntimeException("Fechamento: "+fechamentoCntcorrente.getFechamentocntcorrenteId()+"\r\nRetorno enviado pelo SAP: \r\n"+integrado.getString("Message"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -115,7 +117,7 @@ public class SapServiceImpl implements SapService{
|
||||||
Constante constante = constanteDAO.buscarPorNomeConstante(constanteString);
|
Constante constante = constanteDAO.buscarPorNomeConstante(constanteString);
|
||||||
|
|
||||||
if( constante == null || constante.getValorconstante() == null || constante.getValorconstante().isEmpty() ) {
|
if( constante == null || constante.getValorconstante() == null || constante.getValorconstante().isEmpty() ) {
|
||||||
throw new RuntimeException("Constante "+constanteString+" não cadastrada");
|
throw new RuntimeException("Constante "+constanteString+" n<EFBFBD>o cadastrada");
|
||||||
}
|
}
|
||||||
|
|
||||||
return constante.getValorconstante();
|
return constante.getValorconstante();
|
||||||
|
|
Loading…
Reference in New Issue