|
@ -195,16 +195,35 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="selectlistVisibility" parameterType="com.zc.business.domain.DcMeteorologicalDetectorData" resultMap="DcMeteorologicalDetectorDataResult"> |
|
|
<select id="selectlistVisibility" parameterType="com.zc.business.domain.DcMeteorologicalDetectorData" resultMap="DcMeteorologicalDetectorDataResult"> |
|
|
select d.iot_device_id, d.stake_mark, d.direction, d.device_name, d.device_state, d.stake_mark_range, |
|
|
SELECT |
|
|
|
|
|
d.iot_device_id, |
|
|
|
|
|
d.stake_mark, |
|
|
|
|
|
d.direction, |
|
|
|
|
|
d.device_name, |
|
|
|
|
|
d.device_state, |
|
|
|
|
|
d.stake_mark_range, |
|
|
m.create_time, |
|
|
m.create_time, |
|
|
m.rainfall, m.visibility_type, m.visibility, m.atmospheric_pressure, |
|
|
m.rainfall, |
|
|
m.temperature, m.humidity, m.wind_direction, m.wind_speed, |
|
|
m.visibility_type, |
|
|
m.precipitation_type, m.wet_slippery_coefficient, |
|
|
m.visibility, |
|
|
m.remote_road_surface_temperature, m.remote_road_surface_status, |
|
|
m.atmospheric_pressure, |
|
|
|
|
|
m.temperature, |
|
|
|
|
|
m.humidity, |
|
|
|
|
|
m.wind_direction, |
|
|
|
|
|
m.wind_speed, |
|
|
|
|
|
m.precipitation_type, |
|
|
|
|
|
m.wet_slippery_coefficient, |
|
|
|
|
|
m.remote_road_surface_temperature, |
|
|
|
|
|
m.remote_road_surface_status, |
|
|
m.water_film_ice_snow_value |
|
|
m.water_film_ice_snow_value |
|
|
from dc_meteorological_detector_data AS m |
|
|
FROM |
|
|
LEFT JOIN dc_device AS d |
|
|
dc_meteorological_detector_data AS m |
|
|
ON d.iot_device_id =m.iot_device_id |
|
|
LEFT JOIN |
|
|
WHERE m.visibility_type !=4 |
|
|
dc_device AS d ON d.iot_device_id = m.iot_device_id |
|
|
|
|
|
<where> |
|
|
|
|
|
m.visibility_type != '4' |
|
|
|
|
|
<if test="visibilityType != null and visibilityType != ''">AND m.visibility_type = #{visibilityType}</if> |
|
|
|
|
|
AND DATE(m.create_time) = CURDATE() |
|
|
|
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
</mapper> |
|
|
</mapper> |