jinpengyong
2020-09-28 48bb075f91c5daf35cff0a16abe1136f132aafb4
src/main/resources/mapper/HistoryHourlyMapper.xml
@@ -68,7 +68,8 @@
        DATE_FORMAT(h.time,#{typeFormat}) time,
        avg(h.json->'$.e12[0]') 'beam'
        FROM history_hourly h
        WHERE h.mac in
        WHERE h.json->'$.e12[0]' is not null
        and h.mac in
        <foreach collection="macs" open="(" separator="," close=")" item="mac">
            #{mac}
        </foreach>
@@ -76,7 +77,6 @@
        <foreach collection="times" open="(" separator="," close=")" item="time">
            #{time}
        </foreach>
        and h.json->'$.e12[0]' is not null
        group by h.time
    </select>