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.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -21,6 +23,8 @@ import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
@Service("tarifaOficialService")
|
@Service("tarifaOficialService")
|
||||||
public class TarifaOficialServiceImpl implements TarifaOficialService {
|
public class TarifaOficialServiceImpl implements TarifaOficialService {
|
||||||
|
|
||||||
|
private static Logger log = LoggerFactory.getLogger(TarifaOficialServiceImpl.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private TarifaOficialDAO tarifaOficialDAO;
|
private TarifaOficialDAO tarifaOficialDAO;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -50,18 +54,22 @@ public class TarifaOficialServiceImpl implements TarifaOficialService {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = BusinessException.class)
|
@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
|
// Limpando a tabela de TARIFA_OFICIAL
|
||||||
tarifaOficialDAO.limparTarifasOficiais();
|
tarifaOficialDAO.limparTarifasOficiais();
|
||||||
|
|
||||||
//Gerando as tarifas pelo coeficiente
|
//Gerando as tarifas pelo coeficiente
|
||||||
if(orgaoConcedenteId ==null || orgaoConcedenteId != OrgaoConcedente.CODIGO_ARTESP){
|
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
|
//Gerando as tarifas para ARTESP
|
||||||
if(orgaoConcedenteId ==null || orgaoConcedenteId == OrgaoConcedente.CODIGO_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