Commit ba326f66 authored by ZWT's avatar ZWT

得到的

parent 5e2dca31
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
ID=#{id} ID=#{id}
</select> </select>
<insert id="batchInsertList" parameterType="list"> <insert id="batchInsertList" parameterType="list" databaseId="MySQL">
INSERT INTO THIRD_PHOTOVOLTAIC_POWER (ID, STATION_NAME, CREATE_DATE, PHOTOVOLTAIC_POWER, SYSTEM_SOURCE) INSERT INTO THIRD_PHOTOVOLTAIC_POWER (ID, STATION_NAME, CREATE_DATE, PHOTOVOLTAIC_POWER, SYSTEM_SOURCE)
VALUES VALUES
<foreach collection="list" item="item" separator=","> <foreach collection="list" item="item" separator=",">
...@@ -49,4 +49,19 @@ ...@@ -49,4 +49,19 @@
) )
</foreach> </foreach>
</insert> </insert>
<insert id="batchInsertList" parameterType="list" databaseId="Oracle">
INSERT ALL
<foreach collection="list" item="item">
INTO THIRD_PHOTOVOLTAIC_POWER (ID, STATION_NAME, CREATE_DATE, PHOTOVOLTAIC_POWER, SYSTEM_SOURCE)
VALUES (
#{item.id},
#{item.stationName},
#{item.createDate},
#{item.photovoltaicPower},
#{item.systemSource}
)
</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