select wtur_no, windplant_no, wtg_type, name, ref, namplt, avltmrs, optmrs, strcnt, stopcnt, totwh, totvarh, dmdwh, dmdvarh, supwh, supvarh, turst, w, var, setturop, varovw, varrefpri, dmdw, dmdvar, dmdpf, avg_wsp, avg_tmp, avg_time_dir, avg_humidity, avg_pressure, avg_rain, avg_power, hub_height, rotor_diameter, longtitude, latitude, elevation, orientation, cut_in_wspeed, rated_wspeed, cut_out_wspeed, rated_power, stat_tag from wtur
insert into wtur
wtur_no,
windplant_no,
wtg_type,
name,
ref,
namplt,
avltmrs,
optmrs,
strcnt,
stopcnt,
totwh,
totvarh,
dmdwh,
dmdvarh,
supwh,
supvarh,
turst,
w,
var,
setturop,
varovw,
varrefpri,
dmdw,
dmdvar,
dmdpf,
avg_wsp,
avg_tmp,
avg_time_dir,
avg_humidity,
avg_pressure,
avg_rain,
avg_power,
hub_height,
rotor_diameter,
longtitude,
latitude,
elevation,
orientation,
cut_in_wspeed,
rated_wspeed,
cut_out_wspeed,
rated_power,
stat_tag,
#{wturNo},
#{windplantNo},
#{wtgType},
#{name},
#{ref},
#{namplt},
#{avltmrs},
#{optmrs},
#{strcnt},
#{stopcnt},
#{totwh},
#{totvarh},
#{dmdwh},
#{dmdvarh},
#{supwh},
#{supvarh},
#{turst},
#{w},
#{var},
#{setturop},
#{varovw},
#{varrefpri},
#{dmdw},
#{dmdvar},
#{dmdpf},
#{avgWsp},
#{avgTmp},
#{avgTimeDir},
#{avgHumidity},
#{avgPressure},
#{avgRain},
#{avgPower},
#{hubHeight},
#{rotorDiameter},
#{longtitude},
#{latitude},
#{elevation},
#{orientation},
#{cutInWspeed},
#{ratedWspeed},
#{cutOutWspeed},
#{ratedPower},
#{statTag},
insert into wtur(wtur_no, windplant_no, wtg_type, name, ref, longtitude, latitude, rated_power, stat_tag)
SELECT
#{item.wturNo},
#{item.windplantNo},
#{item.wtgType},
#{item.name},
#{item.ref},
#{item.longtitude},
#{item.latitude},
#{item.ratedPower},
#{item.statTag}
FROM DUAL
update wtur
windplant_no = #{windplantNo},
wtg_type = #{wtgType},
name = #{name},
ref = #{ref},
namplt = #{namplt},
avltmrs = #{avltmrs},
optmrs = #{optmrs},
strcnt = #{strcnt},
stopcnt = #{stopcnt},
totwh = #{totwh},
totvarh = #{totvarh},
dmdwh = #{dmdwh},
dmdvarh = #{dmdvarh},
supwh = #{supwh},
supvarh = #{supvarh},
turst = #{turst},
w = #{w},
var = #{var},
setturop = #{setturop},
varovw = #{varovw},
varrefpri = #{varrefpri},
dmdw = #{dmdw},
dmdvar = #{dmdvar},
dmdpf = #{dmdpf},
avg_wsp = #{avgWsp},
avg_tmp = #{avgTmp},
avg_time_dir = #{avgTimeDir},
avg_humidity = #{avgHumidity},
avg_pressure = #{avgPressure},
avg_rain = #{avgRain},
avg_power = #{avgPower},
hub_height = #{hubHeight},
rotor_diameter = #{rotorDiameter},
longtitude = #{longtitude},
latitude = #{latitude},
elevation = #{elevation},
orientation = #{orientation},
cut_in_wspeed = #{cutInWspeed},
rated_wspeed = #{ratedWspeed},
cut_out_wspeed = #{cutOutWspeed},
rated_power = #{ratedPower},
stat_tag = #{statTag},
where wtur_no = #{wturNo}
delete from wtur where wtur_no = #{wturNo}
delete from wtur where wtur_no in
#{wturNo}