1、mapper
int batchInsertData(@Param("list")List data);
2、mapper.xml
<insert id="batchSaveData">
INSERT INTO 表A
(id, value, name)
VALUES
<foreach collection="list" item="item" index="index" separator=",">
(#{item.id}, #{item.value}, #{item.name})
</foreach>
</insert>