id, last_history_id, weather_id, dt, air_temperature, air_humidity, ultraviolet,
light_intensity, rainfall, wind_speed, wind_direction
${alias}.id, ${alias}.last_history_id, ${alias}.weather_id, ${alias}.dt, ${alias}.air_temperature,
${alias}.air_humidity, ${alias}.ultraviolet, ${alias}.light_intensity,
${alias}.rainfall, ${alias}.wind_speed, ${alias}.wind_direction
delete from rm_weather_last
where id = #{id,jdbcType=BIGINT}
insert into rm_weather_last (id, last_history_id, weather_id,
dt, air_temperature, air_humidity,
ultraviolet, light_intensity, rainfall,
wind_speed, wind_direction)
values (#{id,jdbcType=BIGINT}, #{lastHistoryId,jdbcType=BIGINT}, #{weatherId,jdbcType=BIGINT},
#{dt,jdbcType=TIMESTAMP}, #{airTemperature,jdbcType=FLOAT}, #{airHumidity,jdbcType=FLOAT},
#{ultraviolet,jdbcType=INTEGER}, #{lightIntensity,jdbcType=INTEGER}, #{rainfall,jdbcType=FLOAT},
#{windSpeed,jdbcType=FLOAT}, #{windDirection,jdbcType=INTEGER})
insert into rm_weather_last
id,
last_history_id,
weather_id,
dt,
air_temperature,
air_humidity,
ultraviolet,
light_intensity,
rainfall,
wind_speed,
wind_direction,
#{id,jdbcType=BIGINT},
#{lastHistoryId,jdbcType=BIGINT},
#{weatherId,jdbcType=BIGINT},
#{dt,jdbcType=TIMESTAMP},
#{airTemperature,jdbcType=FLOAT},
#{airHumidity,jdbcType=FLOAT},
#{ultraviolet,jdbcType=INTEGER},
#{lightIntensity,jdbcType=INTEGER},
#{rainfall,jdbcType=FLOAT},
#{windSpeed,jdbcType=FLOAT},
#{windDirection,jdbcType=INTEGER},
update rm_weather_last
last_history_id = #{lastHistoryId,jdbcType=BIGINT},
weather_id = #{weatherId,jdbcType=BIGINT},
dt = #{dt,jdbcType=TIMESTAMP},
air_temperature = #{airTemperature,jdbcType=FLOAT},
air_humidity = #{airHumidity,jdbcType=FLOAT},
ultraviolet = #{ultraviolet,jdbcType=INTEGER},
light_intensity = #{lightIntensity,jdbcType=INTEGER},
rainfall = #{rainfall,jdbcType=FLOAT},
wind_speed = #{windSpeed,jdbcType=FLOAT},
wind_direction = #{windDirection,jdbcType=INTEGER},
where id = #{id,jdbcType=BIGINT}
update rm_weather_last
set last_history_id = #{lastHistoryId,jdbcType=BIGINT},
weather_id = #{weatherId,jdbcType=BIGINT},
dt = #{dt,jdbcType=TIMESTAMP},
air_temperature = #{airTemperature,jdbcType=FLOAT},
air_humidity = #{airHumidity,jdbcType=FLOAT},
ultraviolet = #{ultraviolet,jdbcType=INTEGER},
light_intensity = #{lightIntensity,jdbcType=INTEGER},
rainfall = #{rainfall,jdbcType=FLOAT},
wind_speed = #{windSpeed,jdbcType=FLOAT},
wind_direction = #{windDirection,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}