Commit 02010039 authored by ZWT's avatar ZWT

得到的

parent 42d6aa9d
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</foreach> </foreach>
</delete> </delete>
<insert id="batchInsertList" parameterType="list"> <insert id="batchInsertList" parameterType="list" databaseId="MySQL">
INSERT INTO THIRD_CURRENT_WELL_CONDITION (ID, WELL_NUMBER, NEXT_TIME, WELL_STATUS, CUMULATIVE_PRODUCTION, INSERT INTO THIRD_CURRENT_WELL_CONDITION (ID, WELL_NUMBER, NEXT_TIME, WELL_STATUS, CUMULATIVE_PRODUCTION,
RUNNING_TIME, SYSTEM_SOURCE, UPDATE_TIME) RUNNING_TIME, SYSTEM_SOURCE, UPDATE_TIME)
VALUES VALUES
...@@ -68,4 +68,30 @@ ...@@ -68,4 +68,30 @@
) )
</foreach> </foreach>
</insert> </insert>
<insert id="batchInsertList" parameterType="list" databaseId="Oracle">
INSERT ALL
<foreach collection="list" item="item">
INTO THIRD_CURRENT_WELL_CONDITION (ID, WELL_NUMBER,
<if test="item.nextTime != null">
NEXT_TIME,
</if>
WELL_STATUS, CUMULATIVE_PRODUCTION,
RUNNING_TIME, SYSTEM_SOURCE, UPDATE_TIME)
VALUES
(
#{item.id},
#{item.wellNumber},
<if test="item.nextTime != null">
#{item.nextTime},
</if>
#{item.wellStatus},
#{item.cumulativeProduction},
#{item.runningTime},
#{item.systemSource},
#{item.updateTime}
)
</foreach>
SELECT * FROM DUAL
</insert>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment