id, weather_id, dt, air_temperature, air_humidity, ultraviolet, light_intensity,
rainfall, wind_speed, wind_direction
delete from rm_weather_history
where id = #{id,jdbcType=BIGINT}
insert into rm_weather_history (id, weather_id, dt,
air_temperature, air_humidity, ultraviolet,
light_intensity, rainfall, wind_speed,
wind_direction)
values (#{id,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_history
id,
weather_id,
dt,
air_temperature,
air_humidity,
ultraviolet,
light_intensity,
rainfall,
wind_speed,
wind_direction,
#{id,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_history
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_history
set 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}