diff --git a/src/com/rjconsultores/ventaboletos/service/impl/TarifaOficialServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/TarifaOficialServiceImpl.java index 455bb55a8..73da0968d 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/TarifaOficialServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/TarifaOficialServiceImpl.java @@ -3,6 +3,8 @@ package com.rjconsultores.ventaboletos.service.impl; import java.util.ArrayList; import java.util.List; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -21,6 +23,8 @@ import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; @Service("tarifaOficialService") public class TarifaOficialServiceImpl implements TarifaOficialService { + private static Logger log = LoggerFactory.getLogger(TarifaOficialServiceImpl.class); + @Autowired private TarifaOficialDAO tarifaOficialDAO; @Autowired @@ -50,18 +54,22 @@ public class TarifaOficialServiceImpl implements TarifaOficialService { @Override @Transactional(rollbackFor = BusinessException.class) - public void gerarAtualizarTarifa(Integer rudaId, Integer orgaoConcedenteId, Integer empresaId) throws BusinessException { + public void gerarAtualizarTarifa(Integer rutaId, Integer orgaoConcedenteId, Integer empresaId) throws BusinessException { + log.info("gerarAtualizarTarifa= rudaId:"+rutaId+";orgaoConcedenteId:"+orgaoConcedenteId+";empresaId:"+empresaId); + // Limpando a tabela de TARIFA_OFICIAL tarifaOficialDAO.limparTarifasOficiais(); //Gerando as tarifas pelo coeficiente if(orgaoConcedenteId ==null || orgaoConcedenteId != OrgaoConcedente.CODIGO_ARTESP){ - gerarTarifaPorCoeficiente(rudaId, orgaoConcedenteId, empresaId); + Integer qtdTarifaCoeficiente = gerarTarifaPorCoeficiente(rutaId, orgaoConcedenteId, empresaId); + log.info("qtdTarifaCoeficiente="+qtdTarifaCoeficiente); } //Gerando as tarifas para ARTESP if(orgaoConcedenteId ==null || orgaoConcedenteId == OrgaoConcedente.CODIGO_ARTESP ){ - tarifaOficialDAO.gerarTarifaArtesp(rudaId, UsuarioLogado.getUsuarioLogado().getUsuarioId(), orgaoConcedenteId, empresaId); + Integer qtdTarifaArtesp = tarifaOficialDAO.gerarTarifaArtesp(rutaId, UsuarioLogado.getUsuarioLogado().getUsuarioId(), orgaoConcedenteId, empresaId); + log.info("qtdTarifaArtesp="+qtdTarifaArtesp); } }