<insert id="addUsers"> INSERT INTO USER(age,sex) VALUES <foreach collection="users" item="user" separator=","> (#{user.age},#{user.sex}) </foreach> </insert>
<insert id="insertBatchList" parameterType="xxxxxx"> insert into xxx (id,code,lgtd,lttd) values <foreach collection="list" index="index" item="item" separator=","> (#{item.id}, #{item.lgtd}, #{item.lttd}) </foreach> </insert>