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);