fixes bug #9157
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@71558 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
c78507d99a
commit
0e9edd466d
|
@ -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>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue