Hql中使用in参数
String hql = "FROM Login login WHERE login.id in(:ids)"; Mapmap = new HashMap (); Integer[] ids = new Integer[]{1,2,3}; map.put("ids",ids); List lstLogin = (List )xxxDao.findByHql(hql,map,0,0);
本文共 330 字,大约阅读时间需要 1 分钟。
String hql = "FROM Login login WHERE login.id in(:ids)"; Mapmap = new HashMap (); Integer[] ids = new Integer[]{1,2,3}; map.put("ids",ids); List lstLogin = (List )xxxDao.findByHql(hql,map,0,0);
转载于:https://my.oschina.net/u/1450300/blog/743691