<select id="XXXX.list" parameterClass="java.util.ArrayList" resultClass="XXXXX"> select * from XXXX <dynamic prepend=" where XXXX in"> <iterate open="(" close=")" conjunction="," > #[]# </iterate> </dynamic> </select>
传入一个List 用迭代器转换为 in (x,x,x,x,x,x,x……)