select exam_collection_id,
sim_type,
question_setting_method,
exam_collection_type,
exam_collection_state,
exam_collection_name,
task_id,
limit_duration,
start_time,
end_time,
create_user_id,
create_by,
create_time,
update_by,
update_time,
remark
from sim_real_exam_collection
select LAST_INSERT_ID()
insert into sim_real_exam_collection
sim_type,
question_setting_method,
exam_collection_type,
exam_collection_state,
exam_collection_name,
task_id,
limit_duration,
start_time,
end_time,
create_user_id,
create_by,
create_time,
update_by,
update_time,
remark,
#{simType},
#{questionSettingMethod},
#{examCollectionType},
#{examCollectionState},
#{examCollectionName},
#{taskId},
#{limitDuration},
#{startTime},
#{endTime},
#{createUserId},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
update sim_real_exam_collection
sim_type = #{simType},
question_setting_method =
#{questionSettingMethod},
exam_collection_type =
#{examCollectionType},
exam_collection_state = #{examCollectionState},
exam_collection_name =
#{examCollectionName},
task_id = #{taskId},
limit_duration = #{limitDuration},
start_time = #{startTime},
end_time = #{endTime},
create_user_id = #{createUserId},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
where exam_collection_id = #{examCollectionId}
delete
from sim_real_exam_collection
where exam_collection_id = #{examCollectionId}
delete from sim_real_exam_collection where exam_collection_id in
#{examCollectionId}