id, label, multiple_choice, single_choice, true_false, templates_id, subject_id
insert into t_department (label, multiple_choice, single_choice, true_false, templates_id, subject_id)
values (#{label}, #{multipleChoice}, #{singleChoice}, #{trueFalse}, #{templatesId}, #{subjectId})
insert into t_exam_templates_question(id, label, multiple_choice, single_choice, true_false, templates_id, subject_id)
values
(#{item.id},#{item.label},#{item.multipleChoice},#{item.singleChoice},#{item.trueFalse},#{item.templatesId}, #{item.subjectId})
delete from t_exam_templates_question
where templates_id = #{templatesId}