git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@30028 d1611594-4594-4d17-8e1d-87c2c4800839
parent
40f5d6a026
commit
8bbe8334f7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue