第一种:传入参数仅有数组,iterate中不能有数组的属性名 <select id="GetEmailList_Test" resultClass="EmailInfo_"> select * from MailInfo with (nolock) where ID in <iterate open="(" cl…
Ibatis中用list传参数的方式. Java代码 select count(id) from `user` where id in #[]# and status=1 . <select id="getcount" parameterClass="java.util.ArrayList" resultClass="int"> select count(id) from `user` where id in <iterate…