输入数据是字符串 1,2,3,4
Map<String,Object> pumpMap = new HashMap<>();
pumpMap.put("type",pumpId.split(","));
//mybatis in
<foreach item="item" collection="type" index="index" open="(" separator="," close=")">#{item}</foreach>
输入数据是字符串 1,2,3,4
Map<String,Object> pumpMap = new HashMap<>();
pumpMap.put("type",pumpId.split(","));
//mybatis in
<foreach item="item" collection="type" index="index" open="(" separator="," close=")">#{item}</foreach>