jinpengyong
2020-08-06 e36d33b5789cc098898af42fdce6cab057db3cc6
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>