screen-api/src/main/resources/mapper/HistoryHourlyMapper.xml
@@ -75,4 +75,15 @@ where mac = #{mac} and time =#{time} </select> <insert id="insertHistoryHourly"> INSERT INTO history_hourly_${timeUnits} VALUES (#{mac}, #{time}, #{value}, #{version}) </insert> <insert id="updateHistoryHourly"> UPDATE history_hourly_${timeUnits} SET `value` = #{value} where mac = #{mac} and time = #{time} and version = #{version} </insert> </mapper>