mysql 批量查询

//        for (Map m : rangeList) {
// String str = m.get("value").toString();
// String value;
// if (str.contains(",")) {
// List list = Arrays.asList(str.split(","));
// value = getValue(list);
// m.put("value", value);
// }
// }


Impl ----->>

private String getValue(List list) {
Map map = tbHospitalMapper.selectByIds(list);
return map.get("name").toString();
}

Mapper-------->>
Map selectByIds(List list);


Xml--------->>






转载于:https://www.cnblogs.com/guagua-join-1/p/10936011.html

你可能感兴趣的:(mysql 批量查询)