List<Integer> ids = new ArrayList<Integer>(); ids.add(1); ids.add(2); Map<String, Object> params = new HashMap<String, Object>(); params.put("ids", ids); String jpql = "select o from oa_usersroles o where o.role.id in(:ids)"; List<Module> modules = em.createQuery(jpql).setParameter("ids", ids).getResultList();

相关文章:

  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
  • 2021-10-30
  • 2022-12-23
  • 2021-05-17
猜你喜欢
  • 2022-01-21
  • 2021-08-19
  • 2021-09-01
  • 2022-12-23
  • 2021-09-20
  • 2021-05-10
  • 2022-02-26
相关资源
相似解决方案