于紫祥_1901
2020-08-13 43b45a739b9e17171f057f538dfbaa4c2f0e359d
src/main/resources/mapper/DeviceMapper.xml
@@ -385,9 +385,9 @@
            case when h.json->"$.e18[0]"=0 then 0.1 else h.json->"$.e18[0]" end
            as windSpeed, h.json->"$.e23[0]" as windDir,
            h.json->"$.e17[0]" as tVoc
            from ${table} h ,`device` as d
            from ${table} as h ,`device` as d
            where d.mac=h.mac and h.time=#{time}
                  and d.mac in (select d.mac from device , monitor_point as m where d.monitor_point_id=m.id and m.id=#{id})
         and d.mac in (select d.mac from device , monitor_point as m where d.monitor_point_id=m.id and m.id=#{id})
    </select>
    <select id="getDevicesStateByRegion" resultType="map">