批量插入写法
<insert id="batchInsert" parameterType="list"> INSERT INTO AC_OPERATOR_ROLE (OPERATOR_ID, ROLE_ID) VALUES <foreach collection="list" item="record" index="index" separator=","> ( #{record.OPERATOR_ID}, #{record.ROLE_ID} ) </foreach> </insert>
可参考:http://blog.csdn.net/lin910429/article/details/38401061