批量新增可以用foreach标签 批量修改也可以的
<update id="updateBatch" parameterType="java.util.List"> <foreach collection="list" item="noticeInfo" index="index" open="" close="" separator=";"> update notice_info <set> notice_statue=${noticeInfo.noticeStatue} </set> where id = ${noticeInfo.id} </foreach> </update >