|
|
|
@ -442,9 +442,9 @@ |
|
|
|
|
<if test="deviceIndex != null">device_index = #{deviceIndex},</if> |
|
|
|
|
<if test="regionId != null">region_id = #{regionId},</if> |
|
|
|
|
<if test="outCode != null">out_code=#{outCode},</if> |
|
|
|
|
<if test="outCode != null">ip_address=#{ipAddress},</if> |
|
|
|
|
<if test="outCode != null">mac_address=#{macAddress},</if> |
|
|
|
|
<if test="outCode != null">geographical_location=#{geographicalLocation},</if> |
|
|
|
|
<if test="ipAddress != null">ip_address=#{ipAddress},</if> |
|
|
|
|
<if test="macAddress != null">mac_address=#{macAddress},</if> |
|
|
|
|
<if test="geographicalLocation != null">geographical_location=#{geographicalLocation},</if> |
|
|
|
|
</trim> |
|
|
|
|
where id = #{id} |
|
|
|
|
</update> |
|
|
|
@ -600,7 +600,7 @@ |
|
|
|
|
resource_code,humidity,ultraviolet_rays_strength,optical_radiation_intensity,negative_oxygen_ions,ambient_vol,pressure,wind_direction,pm2p5,sulfur_dioxide,ozone,pm10,nitrogen_dioxide,carbon_monoxide,air_quality_index_aqi,rainfall) |
|
|
|
|
t3 ON t1.resource_code = t3.resource_code |
|
|
|
|
</if> |
|
|
|
|
where t1.del_flag != '2' and t1.type=#{type} |
|
|
|
|
where t1.del_flag != '2' and t1.type=#{type} and t1.organ_code = #{organCode} |
|
|
|
|
</select> |
|
|
|
|
<update id="appletsUpdaeDeviceStatus"> |
|
|
|
|
update b_iot_info |
|
|
|
|