myBatis类型分类:
http://www.cnblogs.com/mingyue1818/p/3714162.html
参数类型是List,List的泛型是Map:
##参数内容List<Map<Key,Value>>
//Dao中的接口
List<TbAdItemComment> getScan(@Param("mapList") List<Map<String, Object>> mapList,
@Param("storeId") String storeId, @Param("customerId") String customerId);
<!-- xml中的List<Map<Key,Value>>的使用方式 -->
<foreach item="map" collection="mapList" index="index" open="("
separator=" union all " close=") m">
(select DISTINCT jan,ad_score
from
tb_item_bid_price
where
product_kind = #{map.kind}
and delete_flg='0'
order by ad_score desc
limit #{map.numbers})
</foreach>