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