fixed bug #7394 - correção data de checkin, Relatório de Checkin
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@56438 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
df537e0ae3
commit
921e5af78a
|
@ -14,6 +14,7 @@ import org.apache.commons.lang.StringUtils;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Checkin;
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Checkin;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
|
|
||||||
public class RelatorioCheckin extends Relatorio {
|
public class RelatorioCheckin extends Relatorio {
|
||||||
|
|
||||||
|
@ -31,6 +32,8 @@ public class RelatorioCheckin extends Relatorio {
|
||||||
String idsBilheteiros = (String) getParametros().get("IDS_BILHETEIROS");
|
String idsBilheteiros = (String) getParametros().get("IDS_BILHETEIROS");
|
||||||
Date fecInicio = (Date) getParametros().get("DATA_INICIAL");
|
Date fecInicio = (Date) getParametros().get("DATA_INICIAL");
|
||||||
Date fecFinal = (Date) getParametros().get("DATA_FINAL");
|
Date fecFinal = (Date) getParametros().get("DATA_FINAL");
|
||||||
|
fecInicio = DateUtil.inicioFecha(fecInicio);
|
||||||
|
fecFinal = DateUtil.fimFecha(fecFinal);
|
||||||
|
|
||||||
if (StringUtils.isNotBlank(idsBilheteiros)) {
|
if (StringUtils.isNotBlank(idsBilheteiros)) {
|
||||||
String []ls = idsBilheteiros.split(",");
|
String []ls = idsBilheteiros.split(",");
|
||||||
|
@ -101,7 +104,7 @@ public class RelatorioCheckin extends Relatorio {
|
||||||
sql.append("inner join parada o on b.origen_id = o.parada_id ");
|
sql.append("inner join parada o on b.origen_id = o.parada_id ");
|
||||||
sql.append("inner join usuario u on b.usuario_id = u.usuario_id ");
|
sql.append("inner join usuario u on b.usuario_id = u.usuario_id ");
|
||||||
sql.append(" where b.activo = 1 ");
|
sql.append(" where b.activo = 1 ");
|
||||||
sql.append("and b.feccorrida between ? and ? ");
|
sql.append("and bc.FECMODIF between ? and ? ");
|
||||||
sql.append(corridaId == null ? "" : " and b.corrida_id = ? ");
|
sql.append(corridaId == null ? "" : " and b.corrida_id = ? ");
|
||||||
sql.append(origenId == null ? "" : " and b.origen_id = ? ");
|
sql.append(origenId == null ? "" : " and b.origen_id = ? ");
|
||||||
sql.append((lsInt == null || lsInt.size() == 0) ? "" : " and u.USUARIO_ID in ( "+ createIn(lsInt.size()) + ") ");
|
sql.append((lsInt == null || lsInt.size() == 0) ? "" : " and u.USUARIO_ID in ( "+ createIn(lsInt.size()) + ") ");
|
||||||
|
|
Loading…
Reference in New Issue