log na geração de tarifas
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@46283 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
ddb536e22a
commit
372269b072
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue