REPLACE INTO topic_expired( cluster_id, topic_name, expired_day, gmt_retain, status ) VALUES ( #{clusterId}, #{topicName}, #{expiredDay}, #{gmtRetain}, #{status} ) UPDATE topic_expired SET gmt_retain=#{gmtRetain} WHERE cluster_id = #{clusterId} AND topic_name = #{topicName} DELETE FROM topic_expired WHERE cluster_id=#{clusterId} AND topic_name=#{topicName}