dao层代码:
List<String> sselectCountryAndNamecn(@Param("list") List<Map<String,String>>)
xml文件对应的代码:
<select id = "sselectCountryAndNamecn" resultType="java.lang.String">
select name_cn from **** where
<foreach collection="list" index="index" item="item" open="(" close=")" separator="or">
( country = #{item.country} and name_cn = #{item.nameCn})
</foreach>
</select>
完事。。。