kaiyu
2020-12-02 dcf1385a88fdf517e2cc60b50ea2e0a30e5652ca
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>