delete from monit_notify_history where record_id = #{recordId,jdbcType=BIGINT} insert into monit_notify_history (record_id, monit_id, app_id, notify_type, notify_target, notify_content, status, retry_times, create_time ) values (#{recordId,jdbcType=BIGINT}, #{monitId,jdbcType=INTEGER}, #{appId,jdbcType=TINYINT}, #{notifyType,jdbcType=TINYINT}, #{notifyTarget,jdbcType=INTEGER}, #{notifyContent,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{retryTimes,jdbcType=TINYINT}, #{createTime,jdbcType=BIGINT} ) insert into monit_notify_history record_id, monit_id, app_id, notify_type, notify_target, notify_content, status, retry_times, create_time, #{recordId,jdbcType=BIGINT}, #{monitId,jdbcType=INTEGER}, #{appId,jdbcType=TINYINT}, #{notifyType,jdbcType=TINYINT}, #{notifyTarget,jdbcType=INTEGER}, #{notifyContent,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{retryTimes,jdbcType=TINYINT}, #{createTime,jdbcType=BIGINT}, update monit_notify_history monit_id = #{monitId,jdbcType=INTEGER}, app_id = #{appId,jdbcType=TINYINT}, notify_type = #{notifyType,jdbcType=TINYINT}, notify_target = #{notifyTarget,jdbcType=INTEGER}, notify_content = #{notifyContent,jdbcType=VARCHAR}, status = #{status,jdbcType=TINYINT}, retry_times = #{retryTimes,jdbcType=TINYINT}, create_time = #{createTime,jdbcType=BIGINT}, where record_id = #{recordId,jdbcType=BIGINT} update monit_notify_history set monit_id = #{monitId,jdbcType=INTEGER}, app_id = #{appId,jdbcType=TINYINT}, notify_type = #{notifyType,jdbcType=TINYINT}, notify_target = #{notifyTarget,jdbcType=INTEGER}, notify_content = #{notifyContent,jdbcType=VARCHAR}, status = #{status,jdbcType=TINYINT}, retry_times = #{retryTimes,jdbcType=TINYINT}, create_time = #{createTime,jdbcType=BIGINT} where record_id = #{recordId,jdbcType=BIGINT}