src/main/resources/mapper/HistoryHourlyMapper.xml
@@ -96,4 +96,10 @@ group by h.time </select> <select id="selectCountByMac" resultType="java.lang.Integer"> SELECT count(1) FROM history_hourly WHERE mac = #{mac} AND `time` >= #{start} AND `time` <![CDATA[<]]> #{end} </select> </mapper>