于紫祥_1901
2020-11-06 bb77c5e3089fc3e9ccb520625b7798d81c99bfa2
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>