Commit 016159be authored by ZWT's avatar ZWT

得到的

parent e503cc05
......@@ -90,8 +90,20 @@
INSERT ALL
<foreach collection="list" item="item">
INTO WIND_PREDICTION_HISTORY (ID, STATION_ID, DATA_TIME, WIND_DIRECTION, WIND_SPEED, AIR_TEMPERATURE,
HUMIDITY, PRESSURE, ACTUAL_WIND_DIRECTION, ACTUAL_WIND_SPEED, ACTUAL_POWER, PREDICTED_POWER, WND_100M,
WNS_100M, WNS_GRD_100M) VALUES (
HUMIDITY, PRESSURE, ACTUAL_WIND_DIRECTION, ACTUAL_WIND_SPEED, ACTUAL_POWER
<if test="item.predictedPower != null">
,PREDICTED_POWER
</if>
<if test="item.wnd100m != null">
,WND_100M
</if>
<if test="item.wns100m != null">
,WNS_100M
</if>
<if test="item.wnsGrd100m != null">
,WNS_GRD_100M
</if>
) VALUES (
#{item.id},
#{item.stationId},
#{item.dataTime},
......@@ -102,11 +114,19 @@
#{item.pressure},
#{item.actualWindDirection},
#{item.actualWindSpeed},
#{item.actualPower},
#{item.predictedPower},
#{item.wnd100m},
#{item.wns100m},
#{item.wnsGrd100m}
#{item.actualPower}
<if test="item.predictedPower != null">
,#{item.predictedPower}
</if>
<if test="item.wnd100m != null">
,#{item.wnd100m}
</if>
<if test="item.wns100m != null">
,#{item.wns100m}
</if>
<if test="item.wnsGrd100m != null">
,#{item.wnsGrd100m}
</if>
)
</foreach>
SELECT * FROM DUAL
......
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