select id, iot_device_id, rainfall, visibility_type, visibility, road_surface_status, atmospheric_pressure, temperature, humidity, wind_direction, wind_speed, freezing_point_temperature, salinity_value, road_surface_temperature, water_film_thickness, precipitation_type, wet_slippery_coefficient, sensor_temperature, remote_road_surface_temperature, remote_road_surface_status, sub_surface_temperature, water_film_ice_snow_value,create_time from dc_meteorological_detector_data
insert into dc_meteorological_detector_data
iot_device_id,
rainfall,
visibility_type,
visibility,
road_surface_status,
atmospheric_pressure,
temperature,
humidity,
wind_direction,
wind_speed,
freezing_point_temperature,
salinity_value,
road_surface_temperature,
water_film_thickness,
precipitation_type,
wet_slippery_coefficient,
sensor_temperature,
remote_road_surface_temperature,
remote_road_surface_status,
sub_surface_temperature,
water_film_ice_snow_value,
create_time
#{iotDeviceId},
#{rainfall},
#{visibilityType},
#{visibility},
#{roadSurfaceStatus},
#{atmosphericPressure},
#{temperature},
#{humidity},
#{windDirection},
#{windSpeed},
#{freezingPointTemperature},
#{salinityValue},
#{roadSurfaceTemperature},
#{waterFilmThickness},
#{precipitationType},
#{wetSlipperyCoefficient},
#{sensorTemperature},
#{remoteRoadSurfaceTemperature},
#{remoteRoadSurfaceStatus},
#{subSurfaceTemperature},
#{waterFilmIceSnowValue},
current_date
update dc_meteorological_detector_data
iot_device_id = #{iotDeviceId},
rainfall = #{rainfall},
visibility_type = #{visibilityType},
visibility = #{visibility},
road_surface_status = #{roadSurfaceStatus},
atmospheric_pressure = #{atmosphericPressure},
temperature = #{temperature},
humidity = #{humidity},
wind_direction = #{windDirection},
wind_speed = #{windSpeed},
freezing_point_temperature = #{freezingPointTemperature},
salinity_value = #{salinityValue},
road_surface_temperature = #{roadSurfaceTemperature},
water_film_thickness = #{waterFilmThickness},
precipitation_type = #{precipitationType},
wet_slippery_coefficient = #{wetSlipperyCoefficient},
sensor_temperature = #{sensorTemperature},
remote_road_surface_temperature = #{remoteRoadSurfaceTemperature},
remote_road_surface_status = #{remoteRoadSurfaceStatus},
sub_surface_temperature = #{subSurfaceTemperature},
water_film_ice_snow_value = #{waterFilmIceSnowValue},
where id = #{id}
insert into meteorological_detector_data
device_id,
temperature,
humidity,
precipitation_type,
rainfall,
road_surface_status,
water_film_thickness,
update_time
#{iotDeviceId},
#{temperature},
#{humidity},
#{precipitationType},
#{rainfall},
#{roadSurfaceStatus},
#{waterFilmThickness},
current_date
update meteorological_detector_data
temperature = #{temperature},
humidity = #{humidity},
precipitation_type = #{precipitationType},
rainfall = #{rainfall},
road_surface_status = #{roadSurfaceStatus},
water_film_thickness = #{waterFilmThickness},
update_time = current_date
where device_id = #{iotDeviceId}
delete from dc_meteorological_detector_data where id = #{id}
delete from dc_meteorological_detector_data where id in
#{id}