自定义加添加查询条件的用法:
CriteriaQuery cq = new CriteriaQuery(EquipmentEntity.class, dataGrid); //查询条件组装器 org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, equipment, request.getParameterMap()); cq.add(Restrictions.or(Restrictions.in("person",userIds.split(",")),Restrictions.in("receiver",userIds.split(","))));
原文地址:https://www.cnblogs.com/shuilangyizu/p/8283367.html
时间: 2024-10-10 04:45:57