correção bug relatório vendas percurso
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@67349 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
526cd46b18
commit
aa2a500034
|
@ -31,6 +31,8 @@ public interface EstacionDAO extends GenericDAO<Estacion, Integer> {
|
|||
public List<Estacion> buscar(Long numCaja, PuntoVenta puntoVenta);
|
||||
|
||||
public List<Estacion> buscarEstaciones(PuntoVenta puntoVenta);
|
||||
|
||||
public List<Estacion> buscarEstaciones(List<PuntoVenta> lsPuntoVenta);
|
||||
|
||||
public List<PuntoVenta> buscarPuntosVentaEstacionPorUsuario(Usuario usuario);
|
||||
|
||||
|
|
|
@ -174,4 +174,19 @@ public class EstacionHibernateDAO extends GenericHibernateDAO<Estacion, Integer>
|
|||
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public List<Estacion> buscarEstaciones(List<PuntoVenta> lsPuntoVenta) {
|
||||
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||
c.add(Restrictions.in("puntoVenta", lsPuntoVenta));
|
||||
c.addOrder(Order.asc("numcaja"));
|
||||
c.addOrder(Order.asc("descestacion"));
|
||||
c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);
|
||||
|
||||
return c.list();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -40,6 +40,8 @@ public interface EstacionService {
|
|||
public Long getDecimalMAC(String mac);
|
||||
|
||||
public List<Estacion> buscarEstaciones(PuntoVenta puntoVenta);
|
||||
|
||||
public List<Estacion> buscarEstaciones(List<PuntoVenta> lsPuntoVenta);
|
||||
|
||||
public void devolverFoliosAutomaticosImpressoraFiscal(EstacionImpresora ei);
|
||||
|
||||
|
|
|
@ -203,4 +203,9 @@ public class EstacionServiceImpl implements EstacionService {
|
|||
return estaciones;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Estacion> buscarEstaciones(List<PuntoVenta> lsPuntoVenta) {
|
||||
return estacionDAO.buscarEstaciones(lsPuntoVenta);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue