julio 2013-08-26 19:19:01 +00:00
parent 40f5d6a026
commit 8bbe8334f7
1 changed files with 1 additions and 3 deletions

View File

@ -75,8 +75,6 @@ public class RelatorioLinhasHorario extends Relatorio {
Integer tipoServico = (Integer) parametros.get("TIPOSERVICIO_ID");
String sql = getSql(lsNumLinha, lsNumServico, empresa, tipoServico, grupoRuta);
System.out.println(sql);
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
ResultSet rset = null;
@ -355,7 +353,7 @@ public class RelatorioLinhasHorario extends Relatorio {
private RelatorioLinhasHorarioBean calcIap(RelatorioLinhasHorarioBean horarioBean) {
BigDecimal iap = null;
try {
iap = horarioBean.getPaxKmOfertado().divide(horarioBean.getPaxKmTransportado(), 4, RoundingMode.HALF_EVEN);
iap = horarioBean.getPaxKmTransportado().divide(horarioBean.getPaxKmOfertado(), 4, RoundingMode.HALF_EVEN);
} catch (ArithmeticException e) {
iap = new BigDecimal(0);
} catch (NullPointerException nex) {