private List<String> getVariety(String recordCode, List<String> vaccList) {
String sql = "select id from VaccineSecond where sId=:sId and vaccId in(:vaccId)";
QueryCache qc = new QueryCache(sql);
qc.setParameter("sId", recordCode);
qc.setParameter("vaccId", vaccList);
return qc.list();
}
hibernate查询 list作为参数 使用占位符
最新推荐文章于 2021-02-01 04:44:51 发布