14328: Acrescentar campo estação_id no dispositivo embarcada.

fixes bug#14328
dev:valdevir
qua:leo

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@93195 d1611594-4594-4d17-8e1d-87c2c4800839
master
leonardo 2019-05-13 20:39:08 +00:00
parent 0b3f1145b7
commit 94f6ab57f8
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ public class PuntoVentaHibernateDAO extends GenericHibernateDAO<PuntoVenta, Inte
StringBuilder sQuery = new StringBuilder("SELECT uu "); StringBuilder sQuery = new StringBuilder("SELECT uu ");
sQuery.append("FROM UsuarioUbicacion uu, OperadorEmbarcada o ") sQuery.append("FROM UsuarioUbicacion uu, OperadorEmbarcada o ")
.append("WHERE uu.puntoVenta.puntoventaId = :puntoventaId and uu.usuario.activo = 1 ") .append("WHERE uu.puntoVenta.puntoventaId = :puntoventaId and uu.usuario.activo = 1 ")
.append("and o.usuario.usuarioId = uu.usuario.usuarioId "); .append("and o.usuario.usuarioId = uu.usuario.usuarioId and uu.activo = 1");
Query qr = getSession().createQuery(sQuery.toString()); Query qr = getSession().createQuery(sQuery.toString());