fixes bug#21234

dev:wilian
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@104753 d1611594-4594-4d17-8e1d-87c2c4800839
master
wilian 2020-12-16 12:20:06 +00:00
parent 563339a9cf
commit 5b0de74d02
1 changed files with 1 additions and 2 deletions

View File

@ -16,9 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;
import com.rjconsultores.ventaboletos.dao.ClasseServicoDAO;
import com.rjconsultores.ventaboletos.dao.PrecioFixoPedagioDAO;
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
import com.rjconsultores.ventaboletos.entidad.PrecioFixoPedagio;
/**
@ -81,6 +79,7 @@ public class PrecioFixoPedagioHibernateDAO extends GenericHibernateDAO<PrecioFix
public List<PrecioFixoPedagio> buscarPrecioFixoPedagio(PrecioFixoPedagio obj) {
Criteria c = getSession().createCriteria(getPersistentClass());
c.add(Restrictions.eq("pracaPedagioId.casetaPeajeId", obj.getPracaPedagioId().getCasetaPeajeId()));
c.add(Restrictions.eq("activo", Boolean.TRUE));
if(obj.getOrgaoConcedenteId() != null){
c.add(Restrictions.eq("orgaoConcedenteId.orgaoConcedenteId", obj.getOrgaoConcedenteId().getOrgaoConcedenteId()));
}