于紫祥_1901
2020-08-13 0a107debd7676141376a59bd3d4472912b24f7dc
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>