10595 - Pricing dando refresh nos dados, quando é uma cópia (Continuação)

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@78891 d1611594-4594-4d17-8e1d-87c2c4800839
master
leonardo 2018-02-08 18:44:42 +00:00
parent 5e25d978aa
commit ce4ed3ac0b
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ public class PricingOcupaAntecipaHibernateDAO extends GenericHibernateDAO<Pricin
@Override @Override
public List<PricingOcupaAntecipa> buscarOcupaAntecipaPricing(Integer pricingId) { public List<PricingOcupaAntecipa> buscarOcupaAntecipaPricing(Integer pricingId) {
Criteria c = getSession().createCriteria(getPersistentClass()); 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)); c.add(Restrictions.eq("pricing.pricingId", pricingId));
return c.list(); return c.list();

View File

@ -233,7 +233,7 @@ public class Pricing implements Serializable {
public List<PricingOcupaAntecipa> getPricingOcupaAntecipaList() { public List<PricingOcupaAntecipa> getPricingOcupaAntecipaList() {
List<PricingOcupaAntecipa> poaList = new ArrayList<PricingOcupaAntecipa>(); List<PricingOcupaAntecipa> poaList = new ArrayList<PricingOcupaAntecipa>();
for (PricingOcupaAntecipa poa : this.pricingOcupaAntecipaList) { for (PricingOcupaAntecipa poa : this.pricingOcupaAntecipaList) {
if (poa.getActivo() != EXCLUIDO.intValue() && poa.getActivo() != INATIVO.intValue()) { if (poa.getActivo() != EXCLUIDO.intValue()) {
poaList.add(poa); poaList.add(poa);
} }
} }