Correções do relatório RLH
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@29976 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
9202f7b60f
commit
c0a35a1b5b
|
@ -4,6 +4,7 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.GregorianCalendar;
|
||||
|
@ -342,7 +343,14 @@ public class CorridaHibernateDAO extends GenericHibernateDAO<Corrida, Corrida.Id
|
|||
sq.setParameter("dateInicio", dateInicio);
|
||||
sq.setParameter("dateFin", dateFin);
|
||||
|
||||
List<Corrida> lsCorridas = sq.list();
|
||||
// Corrida corrida = (Corrida) sq.uniqueResult();
|
||||
|
||||
List<Corrida> lsCorridasAux = sq.list();
|
||||
|
||||
List<Corrida> lsCorridas = new ArrayList<Corrida>();
|
||||
if (lsCorridasAux != null && !lsCorridasAux.isEmpty()) {
|
||||
lsCorridas.add(lsCorridasAux.iterator().next());
|
||||
}
|
||||
|
||||
return lsCorridas;
|
||||
}
|
||||
|
|
|
@ -6,10 +6,6 @@ package com.rjconsultores.ventaboletos.dao.hibernate;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.GrupoRutaDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
|
||||
import com.rjconsultores.ventaboletos.entidad.GrupoRuta;
|
||||
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.hibernate.criterion.Restrictions;
|
||||
|
@ -17,6 +13,9 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.GrupoRutaDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.GrupoRuta;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Bruno H. G. Gouvêa <bruno@rjconsultores.com.br>
|
||||
|
|
|
@ -45,7 +45,6 @@ public class GrupoRuta implements Serializable {
|
|||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
|
||||
|
||||
public GrupoRuta() {
|
||||
}
|
||||
|
||||
|
@ -88,8 +87,6 @@ public class GrupoRuta implements Serializable {
|
|||
this.grupoRutaId = grupoRutaId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return the descGrupo
|
||||
*/
|
||||
|
@ -98,7 +95,8 @@ public class GrupoRuta implements Serializable {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param descGrupo the descGrupo to set
|
||||
* @param descGrupo
|
||||
* the descGrupo to set
|
||||
*/
|
||||
public void setDescGrupo(String descgrupo) {
|
||||
this.descgrupo = descgrupo;
|
||||
|
@ -129,6 +127,6 @@ public class GrupoRuta implements Serializable {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.CategoriaClase[grupoRutaId=" + grupoRutaId + "]";
|
||||
return this.getDescGrupo();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,11 +4,10 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue