Conclusão mantis 6849

fixes bug 6849

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@50241 d1611594-4594-4d17-8e1d-87c2c4800839
master
thiago.penido 2015-11-18 13:18:56 +00:00
parent ee7dfed2d8
commit 0768d70932
1 changed files with 2 additions and 3 deletions

View File

@ -28,8 +28,7 @@ public class RelatorioReceitaServico extends Relatorio {
(parametros.get("ORIGEN_ID") != null && parametros.get("ORIGEN_ID") != ""), (parametros.get("ORIGEN_ID") != null && parametros.get("ORIGEN_ID") != ""),
(parametros.get("DESTINO_ID") != null && parametros.get("DESTINO_ID") != ""), (parametros.get("DESTINO_ID") != null && parametros.get("DESTINO_ID") != ""),
(parametros.get("CORRIDA_ID") != null && parametros.get("CORRIDA_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); NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
@ -51,7 +50,7 @@ public class RelatorioReceitaServico extends Relatorio {
stmt.setNull("EMPRESA_ID", java.sql.Types.INTEGER); stmt.setNull("EMPRESA_ID", java.sql.Types.INTEGER);
if (parametros.get("CLASESERVICIO_ID") != null && (!parametros.get("CLASESERVICIO_ID").equals(""))) 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 // else
// stmt.setNull("CLASESERVICIO_ID", java.sql.Types.INTEGER); // stmt.setNull("CLASESERVICIO_ID", java.sql.Types.INTEGER);