From 0768d70932ba72c1859278105bfcf95d99dd3b4d Mon Sep 17 00:00:00 2001 From: "thiago.penido" Date: Wed, 18 Nov 2015 13:18:56 +0000 Subject: [PATCH] =?UTF-8?q?Conclus=C3=A3o=20mantis=206849=20fixes=20bug=20?= =?UTF-8?q?6849?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@50241 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../relatorios/impl/RelatorioReceitaServico.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioReceitaServico.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioReceitaServico.java index 221e2a102..90fb8ad88 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioReceitaServico.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioReceitaServico.java @@ -28,8 +28,7 @@ public class RelatorioReceitaServico extends Relatorio { (parametros.get("ORIGEN_ID") != null && parametros.get("ORIGEN_ID") != ""), (parametros.get("DESTINO_ID") != null && parametros.get("DESTINO_ID") != ""), (parametros.get("CORRIDA_ID") != null && parametros.get("CORRIDA_ID") != ""), - (parametros.get("CLASESERVICIO_ID") != null && parametros.get("CLASESERVICIO_ID") != "") - ); + (parametros.get("CLASESERVICIO_ID") != null && parametros.get("CLASESERVICIO_ID") != "")); NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql); @@ -51,7 +50,7 @@ public class RelatorioReceitaServico extends Relatorio { stmt.setNull("EMPRESA_ID", java.sql.Types.INTEGER); if (parametros.get("CLASESERVICIO_ID") != null && (!parametros.get("CLASESERVICIO_ID").equals(""))) - stmt.setInt("CLASESERVICIO_ID", (Short) parametros.get("CLASESERVICIO_ID")); + stmt.setInt("CLASESERVICIO_ID", (Integer) parametros.get("CLASESERVICIO_ID")); // else // stmt.setNull("CLASESERVICIO_ID", java.sql.Types.INTEGER);