public List<BLWasteType> findBLWasteType(List<BusinessLicense> listBL) { List<Long> list =new ArrayList<Long>(); for(BusinessLicense bl :listBL){ list.add(bl.getId()); } String hql =" from BLWasteType where blid in (:blid)"; Query query =this.createQuery(hql); query.setParameterList("blid", list); return query.list(); }
时间: 2024-10-01 12:17:17