mapper文件
<select id="selectWhere" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from table
<where>
table.a = a and table.b in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
'${item}'
</foreach>
</where>
</select>
DAO片段
List<T> selectWhere(@Param("list")List<String> list ,@Param("a") String a);