jinpengyong
2020-12-16 0d667ba939460c3dc6cdb0c974841bd0be5dc432
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>