fixed bug #9922 - Correção de problema em relatório de demanda consolidado.

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@74534 d1611594-4594-4d17-8e1d-87c2c4800839
master
thiago 2017-10-05 20:25:49 +00:00
parent ef1af9d8a1
commit 5501d42e27
1 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
/**
*
*
*/
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
@ -98,7 +98,7 @@ public class RelatorioDemandasConsolidado extends RelatorioDemandas {
if (parametros.get("TIPO_SERVICO").toString().equals("1")) { //NORMAL
sql.append(" AND ts_normal.TIPOSERVICIO_ID = :TIPO_SERVICO ");
} else { //EXTRA
sql.append(" AND ts_extra.TIPOSERVICIO_ID = :TIPO_SERVICO ");
sql.append(" AND ts_extra.TIPOSERVICIO_ID = :TIPO_SERVICO ");
}
}
sql.append(" GROUP BY ");
@ -106,7 +106,7 @@ public class RelatorioDemandasConsolidado extends RelatorioDemandas {
sql.append(" r.DESCRUTA, ");
sql.append(" cs.DESCCLASE, ");
sql.append(" r.NUMRUTA ");
sql.append(" ORDER BY ");
sql.append(" e.NOMBEMPRESA, ");
@ -126,10 +126,10 @@ public class RelatorioDemandasConsolidado extends RelatorioDemandas {
if (parametros.get("TIPO_SERVICO") != null) {
stmt.setInt("TIPO_SERVICO", Integer.valueOf(parametros.get("TIPO_SERVICO").toString()));
}
stmt.setDate("DATA_INICIAL", new java.sql.Date(((java.util.Date) parametros.get("DATA_INICIAL")).getTime()));
stmt.setDate("DATA_FINAL", new java.sql.Date(((java.util.Date) parametros.get("DATA_FINAL")).getTime()));
stmt.setTimestamp("DATA_INICIAL", new Timestamp(DateUtil.inicioFecha(dataInicial.getTime()).getTime()));
stmt.setTimestamp("DATA_FINAL", new Timestamp(DateUtil.fimFecha(dataFinal.getTime()).getTime()));
ResultSet rset = stmt.executeQuery();