alexandre.lima 2017-07-20 20:13:20 +00:00
parent 6484b292b7
commit a4295e3590
3 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ import com.rjconsultores.ventaboletos.entidad.Ruta;
public interface CalcularPeajeDAO { public interface CalcularPeajeDAO {
public List<Object> buscarCasetasPeajeWithinTramo(Ruta ruta); public List<Object> buscarCasetasPeajeWithinTramo(Ruta ruta);
public int[] gerarSQLInserirPeajes(List<Ruta> lsRuta, OrgaoConcedente orgao, boolean usaICMS); public int[] gerarSQLInserirPeajes(List<Ruta> lsRuta, OrgaoConcedente orgao, boolean usaICMS) throws Exception;
public List<Ruta> buscarRutaWithCasetaPeajeFromOrgao(OrgaoConcedente oc); public List<Ruta> buscarRutaWithCasetaPeajeFromOrgao(OrgaoConcedente oc);
} }

View File

@ -8,5 +8,5 @@ import com.rjconsultores.ventaboletos.entidad.Ruta;
public interface CalcularPeajeService { public interface CalcularPeajeService {
public List<Object> buscarCasetasPeajeWithinTramo(Ruta ruta); public List<Object> buscarCasetasPeajeWithinTramo(Ruta ruta);
public List<Ruta> buscarRutaWithCasetaPeajeFromOrgao(OrgaoConcedente oc); public List<Ruta> buscarRutaWithCasetaPeajeFromOrgao(OrgaoConcedente oc);
public int[] gerarSQLInserirPeajes(List<Ruta> lsRuta, OrgaoConcedente orgao, boolean usaICMS); public int[] gerarSQLInserirPeajes(List<Ruta> lsRuta, OrgaoConcedente orgao, boolean usaICMS) throws Exception;
} }

View File

@ -30,7 +30,7 @@ public class CalcularPeajeServiceImpl implements CalcularPeajeService{
@Override @Override
@Transactional(rollbackFor = BusinessException.class) @Transactional(rollbackFor = BusinessException.class)
public int[] gerarSQLInserirPeajes(List<Ruta> lsRuta, OrgaoConcedente orgao, boolean usaICMS){ public int[] gerarSQLInserirPeajes(List<Ruta> lsRuta, OrgaoConcedente orgao, boolean usaICMS) throws Exception {
return calcularPeajeDAO.gerarSQLInserirPeajes(lsRuta, orgao, usaICMS); return calcularPeajeDAO.gerarSQLInserirPeajes(lsRuta, orgao, usaICMS);
} }
} }