src/main/resources/mapper/HistoryHourlyMapper.xml
@@ -68,7 +68,7 @@ <select id="getBeamByMacs" resultType="java.util.Map"> SELECT DATE_FORMAT(h.time,'%Y-%m-%d %H:%i:%s') time, round(avg(h.json->'$.e12[0]'),0) beam avg(h.json->'$.e12[0]') beam FROM history_hourly h WHERE h.mac in <foreach item="item" collection="macs" index="index" open="(" separator="," close=")">#{item}</foreach>