leonardo 2015-12-30 12:53:29 +00:00
parent 9462861fba
commit 69f14c80b4
1 changed files with 5 additions and 1 deletions

View File

@ -13,7 +13,9 @@ import java.util.ListIterator;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import com.trg.search.Filter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
@ -33,6 +35,7 @@ import org.zkoss.zul.Textbox;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.Moneda;
import com.rjconsultores.ventaboletos.entidad.Nodo;
import com.rjconsultores.ventaboletos.entidad.PtovtaEmpresa;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
import com.rjconsultores.ventaboletos.service.MonedaService;
@ -315,9 +318,10 @@ public class BusquedaPuntoVentaController extends MyGenericForwardComposer {
empresa = (Empresa) itemEmpresa.getValue();
claseServicioBusqueda.addFilterEqual("lsPtovtaEmpresa.empresa", empresa);
} else {
claseServicioBusqueda.addFilterIn("lsPtovtaEmpresa.empresa", lsEmpresas);
claseServicioBusqueda.addFilterOr(Filter.in("lsPtovtaEmpresa.empresa", lsEmpresas), Filter.in("lsPtovtaEmpresa.empresa", new ArrayList<Empresa>()));
}
if (itemTipoPontoVenta != null) {
tipoPontoVenta = (TipoPuntoVenta) itemTipoPontoVenta.getValue();
claseServicioBusqueda.addFilterEqual("tipoPuntoVenta", tipoPontoVenta);