select id, dept_id, project_id, craft_type, craft_post, question_diff, question_type, question_desc, question_answer, is_del, create_by, create_time, update_by, update_time, remark from bus_exam_question
insert into bus_exam_question
dept_id,
project_id,
craft_type,
craft_post,
question_diff,
question_type,
question_desc,
question_answer,
is_del,
create_by,
create_time,
update_by,
update_time,
remark,
#{deptId},
#{projectId},
#{craftType},
#{craftPost},
#{questionDiff},
#{questionType},
#{questionDesc},
#{questionAnswer},
#{isDel},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
update bus_exam_question
dept_id = #{deptId},
project_id = #{projectId},
craft_type = #{craftType},
craft_post = #{craftPost},
question_diff = #{questionDiff},
question_type = #{questionType},
question_desc = #{questionDesc},
question_answer = #{questionAnswer},
is_del = #{isDel},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
where id = #{id}
delete from bus_exam_question where id = #{id}
delete from bus_exam_question where id in
#{id}
delete from bus_exam_question_result where question_id in
#{questionId}
delete from bus_exam_question_result where question_id = #{questionId}
insert into bus_exam_question_result( id, question_id, opt, result, is_del, create_by, create_time, update_by, update_time, remark) values
( #{item.id}, #{item.questionId}, #{item.opt}, #{item.result}, #{item.isDel}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark})