INSERT INTO exam_question(
question_id,
subject,
question_type,
custom_question_type,
type,
choice_type,
analysis,
parent_id,
difficulty,
source,
answer,
creator,
gmt_create,
modifier,
gmt_modified,
is_delete
) VALUES(
#{questionId},
#{subject},
#{questionType},
#{customQuestionType},
#{type},
#{choiceType},
#{analysis},
#{parentId},
#{difficulty},
#{source},
#{answer},
#{creator},
#{gmtCreate},
#{modifier},
#{gmtModified},
#{isDelete}
)
UPDATE
exam_question
SET
is_delete = 1,
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
question_id IN
#{questionIds[${index}]}
DELETE FROM
exam_question
WHERE
question_id IN
#{questionIds[${index}]}
UPDATE
exam_question
SET
subject = #{subject},
question_type = #{questionType},
custom_question_type = #{customQuestionType},
type = #{type},
choice_type = #{choiceType},
analysis = #{analysis},
parent_id = #{parentId},
difficulty = #{difficulty},
source = #{source},
answer = #{answer},
modifier = #{modifier},
gmt_modified = #{gmtModified}
WHERE
question_id = #{questionId}