select id, name, no, img_url, province_id, city_id, school_id, course_id, teacher_id, auditor_id, year, semester, union_type, type, difficulty, score, pass_score, exam_time, time_length, create_time, update_time, is_delete, status, category_id from exam_paper insert into exam_paper name, no, img_url, province_id, city_id, school_id, course_id, teacher_id, auditor_id, year, semester, union_type, type, difficulty, score, pass_score, exam_time, time_length, create_time, update_time, is_delete, status, category_id, #{name}, #{no}, #{imgUrl}, #{provinceId}, #{cityId}, #{schoolId}, #{courseId}, #{teacherId}, #{auditorId}, #{year}, #{semester}, #{unionType}, #{type}, #{difficulty}, #{score}, #{passScore}, #{examTime}, #{timeLength}, #{createTime}, #{updateTime}, #{isDelete}, #{status}, #{categoryId}, update exam_paper name = #{name}, no = #{no}, img_url = #{imgUrl}, province_id = #{provinceId}, city_id = #{cityId}, school_id = #{schoolId}, course_id = #{courseId}, teacher_id = #{teacherId}, auditor_id = #{auditorId}, year = #{year}, semester = #{semester}, union_type = #{unionType}, type = #{type}, difficulty = #{difficulty}, score = #{score}, pass_score = #{passScore}, exam_time = #{examTime}, time_length = #{timeLength}, create_time = #{createTime}, update_time = #{updateTime}, is_delete = #{isDelete}, status = #{status}, category_id = #{categoryId}, where id = #{id} delete from exam_paper where id = #{id} delete from exam_paper where id in #{id} delete from exam_paper_module where paper_id in #{paperId} delete from exam_paper_module where paper_id = #{paperId} insert into exam_paper_module( id, paper_id, module_name, question_type_id, time_length, img_url, score, create_time, sort_num) values ( #{item.id}, #{item.paperId}, #{item.moduleName}, #{item.questionTypeId}, #{item.timeLength}, #{item.imgUrl}, #{item.score}, #{item.createTime}, #{item.sortNum})