r.id, r.uid, r.room, r.state, r.request_id, r.score, r.risk_level, r.audio_url, r.pre_audio_url, r.audio_endtime,
r.audio_starttime, r.content, r.description, r.matched_detail, r.matched_field, r.matched_item,
r.matched_list, r.model, r.risk_type, r.risk_type_desc, r.user_id, r.create_time
delete from room_monitor_violation_info
where id = #{id,jdbcType=INTEGER}
SELECT LAST_INSERT_ID()
insert into room_monitor_violation_info (uid, room, state,
request_id, score, risk_level,
audio_url, pre_audio_url, audio_endtime,
audio_starttime, content, description,
matched_detail, matched_field, matched_item,
matched_list, model, risk_type,
risk_type_desc, user_id, create_time
)
values (#{uid,jdbcType=BIGINT}, #{room,jdbcType=BIGINT}, #{state,jdbcType=INTEGER},
#{requestId,jdbcType=VARCHAR}, #{score,jdbcType=INTEGER}, #{riskLevel,jdbcType=VARCHAR},
#{audioUrl,jdbcType=VARCHAR}, #{preAudioUrl,jdbcType=VARCHAR}, #{audioEndtime,jdbcType=VARCHAR},
#{audioStarttime,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR},
#{matchedDetail,jdbcType=VARCHAR}, #{matchedField,jdbcType=VARCHAR}, #{matchedItem,jdbcType=VARCHAR},
#{matchedList,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{riskType,jdbcType=INTEGER},
#{riskTypeDesc,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}
)
SELECT LAST_INSERT_ID()
insert into room_monitor_violation_info
uid,
room,
state,
request_id,
score,
risk_level,
audio_url,
pre_audio_url,
audio_endtime,
audio_starttime,
content,
description,
matched_detail,
matched_field,
matched_item,
matched_list,
model,
risk_type,
risk_type_desc,
user_id,
create_time,
#{uid,jdbcType=BIGINT},
#{room,jdbcType=BIGINT},
#{state,jdbcType=INTEGER},
#{requestId,jdbcType=VARCHAR},
#{score,jdbcType=INTEGER},
#{riskLevel,jdbcType=VARCHAR},
#{audioUrl,jdbcType=VARCHAR},
#{preAudioUrl,jdbcType=VARCHAR},
#{audioEndtime,jdbcType=VARCHAR},
#{audioStarttime,jdbcType=VARCHAR},
#{content,jdbcType=VARCHAR},
#{description,jdbcType=VARCHAR},
#{matchedDetail,jdbcType=VARCHAR},
#{matchedField,jdbcType=VARCHAR},
#{matchedItem,jdbcType=VARCHAR},
#{matchedList,jdbcType=VARCHAR},
#{model,jdbcType=VARCHAR},
#{riskType,jdbcType=INTEGER},
#{riskTypeDesc,jdbcType=VARCHAR},
#{userId,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
update room_monitor_violation_info
uid = #{uid,jdbcType=BIGINT},
room = #{room,jdbcType=BIGINT},
state = #{state,jdbcType=INTEGER},
request_id = #{requestId,jdbcType=VARCHAR},
score = #{score,jdbcType=INTEGER},
risk_level = #{riskLevel,jdbcType=VARCHAR},
audio_url = #{audioUrl,jdbcType=VARCHAR},
pre_audio_url = #{preAudioUrl,jdbcType=VARCHAR},
audio_endtime = #{audioEndtime,jdbcType=VARCHAR},
audio_starttime = #{audioStarttime,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
matched_detail = #{matchedDetail,jdbcType=VARCHAR},
matched_field = #{matchedField,jdbcType=VARCHAR},
matched_item = #{matchedItem,jdbcType=VARCHAR},
matched_list = #{matchedList,jdbcType=VARCHAR},
model = #{model,jdbcType=VARCHAR},
risk_type = #{riskType,jdbcType=INTEGER},
risk_type_desc = #{riskTypeDesc,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
admin_id = #{adminId,jdbcType=INTEGER},
where id = #{id,jdbcType=INTEGER}
update room_monitor_violation_info
set uid = #{uid,jdbcType=BIGINT},
room = #{room,jdbcType=BIGINT},
state = #{state,jdbcType=INTEGER},
request_id = #{requestId,jdbcType=VARCHAR},
score = #{score,jdbcType=INTEGER},
risk_level = #{riskLevel,jdbcType=VARCHAR},
audio_url = #{audioUrl,jdbcType=VARCHAR},
pre_audio_url = #{preAudioUrl,jdbcType=VARCHAR},
audio_endtime = #{audioEndtime,jdbcType=VARCHAR},
audio_starttime = #{audioStarttime,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
matched_detail = #{matchedDetail,jdbcType=VARCHAR},
matched_field = #{matchedField,jdbcType=VARCHAR},
matched_item = #{matchedItem,jdbcType=VARCHAR},
matched_list = #{matchedList,jdbcType=VARCHAR},
model = #{model,jdbcType=VARCHAR},
risk_type = #{riskType,jdbcType=INTEGER},
risk_type_desc = #{riskTypeDesc,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}