燕山石化溯源三维电子沙盘-【后端】-服务
13693261870
2023-06-05 1198ea43ca127f0a14968d5d57b544a7a2d0cde7
src/main/resources/mapping/VocValsMapper.xml
@@ -26,15 +26,15 @@
        where date_format(create_time, '%Y%m%d%H') = ${time};
    </select>
    <insert id="insert" parameterType="com.yssh.entity.VocVals" useGeneratedKeys="true" keyProperty="id">
        insert into voc_vals (x, y, val, create_time) values
        (${x}, ${y}, ${val}, ${createTime});
    <insert id="insert" parameterType="com.yssh.entity.VocVals" useGeneratedKeys="false" keyProperty="id">
        insert into voc_vals (id, x, y, val, create_time) values
        (${id}, ${x}, ${y}, ${val}, ${createTime});
    </insert>
    <insert id="inserts" parameterType="com.yssh.entity.VocVals" useGeneratedKeys="true" keyProperty="id">
        insert into voc_vals (x, y, val, create_time) values
    <insert id="inserts" parameterType="com.yssh.entity.VocVals" useGeneratedKeys="false" keyProperty="id">
        insert into voc_vals (id, x, y, val, create_time) values
        <foreach collection="list" item="item" index="index" separator=",">
            (#{item.x},#{item.y},#{item.val},#{item.createTime})
            (${item.id}, #{item.x},#{item.y},#{item.val},#{item.createTime})
        </foreach>
    </insert>