replace INTO t_weather (`NAME`,WEATHER,TEMP_MAX,TEMP_MIN,CREATE_TIME,REAL_TIME_TEMP,REAL_TIME_WEATHER,HOURS) VALUES (#{name},#{weather},#{tempMax},#{tempMin},#{createTime},#{realTimeTemp},#{realTimeWeather},#{hours}) DELETE FROM t_weather WHERE CREATE_TIME = DATE_SUB(curdate(),INTERVAL 1 DAY)