hql中的in查询

public List<ShopDianpu> findbymiaosha(long id, List<Object> list)
throws Exception {
String hql="from ShopDianpu where dianput.id="+id+" and shop.zhuangtai='1' and LENGTH(huodong)>5 and shop.id not in (:list) order by shop.rexiaoshezhi desc,shop.dianleipaixu asc";
Query createQuery = getSession().createQuery(hql);
createQuery.setParameterList("list", list);
return createQuery.list();
}
上一篇:Docker 02 - 向 Docker 的 Tomcat 镜像中部署 Web 应用


下一篇:Asp.net MVC 4 视图相关和其他