0010970: 007 – Configuração de reserva
fixed bug#10970 dev:daniel qua:bruno git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@81394 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
67e6bb068e
commit
65e7ade40c
|
@ -65,7 +65,7 @@ public class ReservacionCtrlHibernateDAO
|
|||
ids = ids.substring(0, ids.length() - 1);
|
||||
|
||||
StringBuilder hql = new StringBuilder();
|
||||
hql.append(" select rc from ReservacionCtrl rc ");
|
||||
hql.append(" select distinct rc from ReservacionCtrl rc ");
|
||||
hql.append(" inner join rc.reservacionCategoriaList lsCat ");
|
||||
hql.append(" where lsCat.categoria.categoriaId in (" + ids + ") ");
|
||||
hql.append(" and rc.activo = TRUE ");
|
||||
|
@ -80,12 +80,10 @@ public class ReservacionCtrlHibernateDAO
|
|||
hql.append(" OR ( :fecinicio >= rc.fecinicio and :fecfinal <= rc.fecfinal )) ");
|
||||
// vigencia
|
||||
|
||||
|
||||
Query query = getSession().createQuery(hql.toString());
|
||||
query.setDate("fecfinal", fecfinal.getTime());
|
||||
query.setDate("fecinicio", fecinicio.getTime());
|
||||
|
||||
|
||||
return query.list();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue