<select id="selectById" resultType="student" parameterType="list">
select * from student
<where>
<foreach collection="list" open="id IN(" close=")" item="id" separator=",">
#{id}
</foreach>
</where>
</select>
<select id="selectById" resultType="student" parameterType="list">
select * from student
<where>
<foreach collection="list" open="id IN(" close=")" item="id" separator=",">
#{id}
</foreach>
</where>
</select>