diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioConferenciaFormularioFisico.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioConferenciaFormularioFisico.java index fa49a1353..eda73e937 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioConferenciaFormularioFisico.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioConferenciaFormularioFisico.java @@ -51,7 +51,7 @@ public class RelatorioConferenciaFormularioFisico extends Relatorio { sql.append(" inner join turno t on t.turno_id = c.turno_id "); sql.append(" where "); sql.append(" c.empresacorrida_id = ? "); - sql.append(" and c.feccorte between ? and ? "); + sql.append(" and c.feccorte between to_date(?,'dd/mm/yyyy hh24:mi') and to_date(?,'dd/mm/yyyy hh24:mi') "); if (puntoventaId != null && puntoventaId != -1) { sql.append(" and c.puntoventa_id = " + puntoventaId); } @@ -94,8 +94,8 @@ public class RelatorioConferenciaFormularioFisico extends Relatorio { PreparedStatement pstmt = getConexao().prepareStatement(sql); pstmt.setInt(1, empresaId); - pstmt.setTimestamp(2, new java.sql.Timestamp(fecInicio.getTime())); - pstmt.setTimestamp(3, new java.sql.Timestamp(fecFinal.getTime())); + pstmt.setString(2, DateUtil.getStringDate(fecInicio, "dd/MM/yyyy HH:mm")); + pstmt.setString(3, DateUtil.getStringDate(fecFinal, "dd/MM/yyyy HH:mm")); List formularios = new ArrayList();