wilian 2017-07-19 19:35:02 +00:00
parent c78507d99a
commit 0e9edd466d
1 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ public class RelatorioConferenciaFormularioFisico extends Relatorio {
sql.append(" inner join turno t on t.turno_id = c.turno_id "); sql.append(" inner join turno t on t.turno_id = c.turno_id ");
sql.append(" where "); sql.append(" where ");
sql.append(" c.empresacorrida_id = ? "); 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) { if (puntoventaId != null && puntoventaId != -1) {
sql.append(" and c.puntoventa_id = " + puntoventaId); sql.append(" and c.puntoventa_id = " + puntoventaId);
} }
@ -94,8 +94,8 @@ public class RelatorioConferenciaFormularioFisico extends Relatorio {
PreparedStatement pstmt = getConexao().prepareStatement(sql); PreparedStatement pstmt = getConexao().prepareStatement(sql);
pstmt.setInt(1, empresaId); pstmt.setInt(1, empresaId);
pstmt.setTimestamp(2, new java.sql.Timestamp(fecInicio.getTime())); pstmt.setString(2, DateUtil.getStringDate(fecInicio, "dd/MM/yyyy HH:mm"));
pstmt.setTimestamp(3, new java.sql.Timestamp(fecFinal.getTime())); pstmt.setString(3, DateUtil.getStringDate(fecFinal, "dd/MM/yyyy HH:mm"));
List<ConferenciaFormularioFisico> formularios = new ArrayList<ConferenciaFormularioFisico>(); List<ConferenciaFormularioFisico> formularios = new ArrayList<ConferenciaFormularioFisico>();