MapMapper 方法params = new HashMap<>(); List ids = new ArrayList<>(); Long donwCnt = 20L; params.put("ids", ids); params.put("downCnt", donwCnt); boolean result = userMapper.batchUpdateByIds(params);
boolean batchUpdateByIds(MapXml内容params) throws Exception;
update user down_cnt = #{downCnt} where id in #{item}
参考:MyBatis传入多个参数,实现批量更新



