于紫祥_1901
2020-10-22 3a4442da13b6f1300956bd63a5d106c5b2fc7184
src/main/resources/mapper/HistoryMapper.xml
@@ -292,5 +292,10 @@
        select `json` from ${table}
      where  time = #{time} and mac = #{mac}
    </select>
    <select id="getValueByMacAndTime" resultType="java.lang.String">
        select `value` from history
      where  mac = #{mac} and time &gt;= #{time1} and time &lt;=#{time}
        limit 0,1
    </select>
</mapper>