案例:
//Mapper层
void addList(List<Map<String, Object>> paramList)
//持久化层
<!-- 循环插入List<Map> -->
<insert id="addList" parameterType="java.util.List">
<foreach collection="list" item="customer" index="index" separator=";">
INSERT IGNORE INTO xxx_form_data
<foreach collection="customer.entrySet()" index="key" separator="," open="(" close=")">
${key}
</foreach>
VALUES
<foreach collection="customer.entrySet()" item="value" separator="," open="(" close=")">
#{value}
</foreach>
</foreach>
</insert>