From ce4ed3ac0b31f2ea537ed3805a8f6208ea3119b1 Mon Sep 17 00:00:00 2001 From: leonardo Date: Thu, 8 Feb 2018 18:44:42 +0000 Subject: [PATCH] =?UTF-8?q?10595=20-=20Pricing=20dando=20refresh=20nos=20d?= =?UTF-8?q?ados,=20quando=20=C3=A9=20uma=20c=C3=B3pia=20(Continua=C3=A7?= =?UTF-8?q?=C3=A3o)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@78891 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../dao/hibernate/PricingOcupaAntecipaHibernateDAO.java | 2 +- src/com/rjconsultores/ventaboletos/entidad/Pricing.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/dao/hibernate/PricingOcupaAntecipaHibernateDAO.java b/src/com/rjconsultores/ventaboletos/dao/hibernate/PricingOcupaAntecipaHibernateDAO.java index 56f0c3092..0393f7151 100644 --- a/src/com/rjconsultores/ventaboletos/dao/hibernate/PricingOcupaAntecipaHibernateDAO.java +++ b/src/com/rjconsultores/ventaboletos/dao/hibernate/PricingOcupaAntecipaHibernateDAO.java @@ -40,7 +40,7 @@ public class PricingOcupaAntecipaHibernateDAO extends GenericHibernateDAO buscarOcupaAntecipaPricing(Integer pricingId) { Criteria c = getSession().createCriteria(getPersistentClass()); - c.add(Restrictions.eq("activo", Pricing.ATIVO)); + c.add(Restrictions.or(Restrictions.eq("activo", Pricing.ATIVO), Restrictions.eq("activo", Pricing.INATIVO))); c.add(Restrictions.eq("pricing.pricingId", pricingId)); return c.list(); diff --git a/src/com/rjconsultores/ventaboletos/entidad/Pricing.java b/src/com/rjconsultores/ventaboletos/entidad/Pricing.java index 22fbb1ab3..720374a0e 100644 --- a/src/com/rjconsultores/ventaboletos/entidad/Pricing.java +++ b/src/com/rjconsultores/ventaboletos/entidad/Pricing.java @@ -233,7 +233,7 @@ public class Pricing implements Serializable { public List getPricingOcupaAntecipaList() { List poaList = new ArrayList(); for (PricingOcupaAntecipa poa : this.pricingOcupaAntecipaList) { - if (poa.getActivo() != EXCLUIDO.intValue() && poa.getActivo() != INATIVO.intValue()) { + if (poa.getActivo() != EXCLUIDO.intValue()) { poaList.add(poa); } }