1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.mes.temperingglass.mapper.TemperingGlassInfoMapper">
    <insert id="saveBatch">
        INSERT INTO tempering_glass_info ( glass_id, width, height, thickness, tempering_layout_id,
        tempering_feed_sequence, "state" ) VALUES
        <foreach collection="list" item="item" separator=",">
            (#{item.glassId}, #{item.width}, #{item.height}, #{item.thickness}, #{item.temperingLayoutId},
            #{item.temperingFeedSequence}, #{item.state})
        </foreach>
    </insert>
 
</mapper>