src/main/resources/mapper/HistoryDailyMapper.xml
@@ -119,4 +119,12 @@ </if> </where> </select> <!-- 根据设备mac地址,时间,污染因子查询一天的平均值 --> <select id="getDataByTimeSlot" resultType="java.util.Map"> SELECT * FROM history_daily where mac=#{mac} AND time between #{startTime} and #{endTime} </select> </mapper>