<foreach>标签的用法:
6个参数:
collection:要循环的集合
index:循环索引;
item:集合中的一个元素(item和collection,按foreach循环理解);
open:以什么开始;
close:以什么结束;
separator:循环内容之间以什么分隔
mybatis接受的参数分为:(1)基本类型;(2)对象;(3)List;(4)数组;(5)Map
<select id="findRegionName" resultType="java.lang.String"> SELECT GROUP_CONCAT(`NAME`) from bdr.bds_zone WHERE `CODE` in <foreach collection="codes" item="code" open="(" separator="," close=")"> #{code} </foreach> </select>