and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} to_date(#{criterion.value},'yyyy-MM-dd')
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
id, windPowerStationId, windTurbineId, stopTime, startTime, stopHours, lossPower,
stopTypeId, isHandle, warningId, projectId, handleWay, faultView, statusCode, mainId,
resetRate, stateRate, failRate, warningRecordsId
delete from shutdownevent
where id = #{id,jdbcType=VARCHAR}
delete from shutdownevent
insert into shutdownevent (id, windPowerStationId, windTurbineId,
stopTime, startTime, stopHours,
lossPower, stopTypeId, isHandle,
warningId, projectId, handleWay,
faultView, statusCode, mainId,
resetRate, stateRate, failRate,
warningRecordsId)
values (#{id,jdbcType=VARCHAR}, #{windpowerstationid,jdbcType=VARCHAR}, #{windturbineid,jdbcType=VARCHAR},
#{stoptime,jdbcType=TIMESTAMP}, #{starttime,jdbcType=TIMESTAMP}, #{stophours,jdbcType=DECIMAL},
#{losspower,jdbcType=DECIMAL}, #{stoptypeid,jdbcType=VARCHAR}, #{ishandle,jdbcType=SMALLINT},
#{warningid,jdbcType=VARCHAR}, #{projectid,jdbcType=VARCHAR}, #{handleway,jdbcType=VARCHAR},
#{faultview,jdbcType=VARCHAR}, #{statuscode,jdbcType=INTEGER}, #{mainid,jdbcType=VARCHAR},
#{resetrate,jdbcType=VARCHAR}, #{staterate,jdbcType=VARCHAR}, #{failrate,jdbcType=VARCHAR},
#{warningrecordsid,jdbcType=INTEGER})
insert into shutdownevent
id,
windPowerStationId,
windTurbineId,
stopTime,
startTime,
stopHours,
lossPower,
stopTypeId,
isHandle,
warningId,
projectId,
handleWay,
faultView,
statusCode,
mainId,
resetRate,
stateRate,
failRate,
warningRecordsId,
#{id,jdbcType=VARCHAR},
#{windpowerstationid,jdbcType=VARCHAR},
#{windturbineid,jdbcType=VARCHAR},
#{stoptime,jdbcType=TIMESTAMP},
#{starttime,jdbcType=TIMESTAMP},
#{stophours,jdbcType=DECIMAL},
#{losspower,jdbcType=DECIMAL},
#{stoptypeid,jdbcType=VARCHAR},
#{ishandle,jdbcType=SMALLINT},
#{warningid,jdbcType=VARCHAR},
#{projectid,jdbcType=VARCHAR},
#{handleway,jdbcType=VARCHAR},
#{faultview,jdbcType=VARCHAR},
#{statuscode,jdbcType=INTEGER},
#{mainid,jdbcType=VARCHAR},
#{resetrate,jdbcType=VARCHAR},
#{staterate,jdbcType=VARCHAR},
#{failrate,jdbcType=VARCHAR},
#{warningrecordsid,jdbcType=INTEGER},
update shutdownevent
id = #{record.id,jdbcType=VARCHAR},
windPowerStationId = #{record.windpowerstationid,jdbcType=VARCHAR},
windTurbineId = #{record.windturbineid,jdbcType=VARCHAR},
stopTime = #{record.stoptime,jdbcType=TIMESTAMP},
startTime = #{record.starttime,jdbcType=TIMESTAMP},
stopHours = #{record.stophours,jdbcType=DECIMAL},
lossPower = #{record.losspower,jdbcType=DECIMAL},
stopTypeId = #{record.stoptypeid,jdbcType=VARCHAR},
isHandle = #{record.ishandle,jdbcType=SMALLINT},
warningId = #{record.warningid,jdbcType=VARCHAR},
projectId = #{record.projectid,jdbcType=VARCHAR},
handleWay = #{record.handleway,jdbcType=VARCHAR},
faultView = #{record.faultview,jdbcType=VARCHAR},
statusCode = #{record.statuscode,jdbcType=INTEGER},
mainId = #{record.mainid,jdbcType=VARCHAR},
resetRate = #{record.resetrate,jdbcType=VARCHAR},
stateRate = #{record.staterate,jdbcType=VARCHAR},
failRate = #{record.failrate,jdbcType=VARCHAR},
warningRecordsId = #{record.warningrecordsid,jdbcType=INTEGER},
update shutdownevent
set id = #{record.id,jdbcType=VARCHAR},
windPowerStationId = #{record.windpowerstationid,jdbcType=VARCHAR},
windTurbineId = #{record.windturbineid,jdbcType=VARCHAR},
stopTime = #{record.stoptime,jdbcType=TIMESTAMP},
startTime = #{record.starttime,jdbcType=TIMESTAMP},
stopHours = #{record.stophours,jdbcType=DECIMAL},
lossPower = #{record.losspower,jdbcType=DECIMAL},
stopTypeId = #{record.stoptypeid,jdbcType=VARCHAR},
isHandle = #{record.ishandle,jdbcType=SMALLINT},
warningId = #{record.warningid,jdbcType=VARCHAR},
projectId = #{record.projectid,jdbcType=VARCHAR},
handleWay = #{record.handleway,jdbcType=VARCHAR},
faultView = #{record.faultview,jdbcType=VARCHAR},
statusCode = #{record.statuscode,jdbcType=INTEGER},
mainId = #{record.mainid,jdbcType=VARCHAR},
resetRate = #{record.resetrate,jdbcType=VARCHAR},
stateRate = #{record.staterate,jdbcType=VARCHAR},
failRate = #{record.failrate,jdbcType=VARCHAR},
warningRecordsId = #{record.warningrecordsid,jdbcType=INTEGER}
update shutdownevent
windPowerStationId = #{windpowerstationid,jdbcType=VARCHAR},
windTurbineId = #{windturbineid,jdbcType=VARCHAR},
stopTime = #{stoptime,jdbcType=TIMESTAMP},
startTime = #{starttime,jdbcType=TIMESTAMP},
stopHours = #{stophours,jdbcType=DECIMAL},
lossPower = #{losspower,jdbcType=DECIMAL},
stopTypeId = #{stoptypeid,jdbcType=VARCHAR},
isHandle = #{ishandle,jdbcType=SMALLINT},
warningId = #{warningid,jdbcType=VARCHAR},
projectId = #{projectid,jdbcType=VARCHAR},
handleWay = #{handleway,jdbcType=VARCHAR},
faultView = #{faultview,jdbcType=VARCHAR},
statusCode = #{statuscode,jdbcType=INTEGER},
mainId = #{mainid,jdbcType=VARCHAR},
resetRate = #{resetrate,jdbcType=VARCHAR},
stateRate = #{staterate,jdbcType=VARCHAR},
failRate = #{failrate,jdbcType=VARCHAR},
warningRecordsId = #{warningrecordsid,jdbcType=INTEGER},
where id = #{id,jdbcType=VARCHAR}
update shutdownevent
set windPowerStationId = #{windpowerstationid,jdbcType=VARCHAR},
windTurbineId = #{windturbineid,jdbcType=VARCHAR},
stopTime = #{stoptime,jdbcType=TIMESTAMP},
startTime = #{starttime,jdbcType=TIMESTAMP},
stopHours = #{stophours,jdbcType=DECIMAL},
lossPower = #{losspower,jdbcType=DECIMAL},
stopTypeId = #{stoptypeid,jdbcType=VARCHAR},
isHandle = #{ishandle,jdbcType=SMALLINT},
warningId = #{warningid,jdbcType=VARCHAR},
projectId = #{projectid,jdbcType=VARCHAR},
handleWay = #{handleway,jdbcType=VARCHAR},
faultView = #{faultview,jdbcType=VARCHAR},
statusCode = #{statuscode,jdbcType=INTEGER},
mainId = #{mainid,jdbcType=VARCHAR},
resetRate = #{resetrate,jdbcType=VARCHAR},
stateRate = #{staterate,jdbcType=VARCHAR},
failRate = #{failrate,jdbcType=VARCHAR},
warningRecordsId = #{warningrecordsid,jdbcType=INTEGER}
where id = #{id,jdbcType=VARCHAR}