id, question_id, exam_paper_id, exam_paper_answer_id, question_type, subject_id,
customer_score, question_score, question_text_content_id, answer, text_content_id,
do_right, create_user, create_time, item_order
delete from t_exam_paper_question_customer_answer
where id = #{id,jdbcType=INTEGER}
insert into t_exam_paper_question_customer_answer (id, question_id, exam_paper_id,
exam_paper_answer_id, question_type, subject_id,
customer_score, question_score, question_text_content_id,
answer, text_content_id, do_right,
create_user, create_time, item_order
)
values (#{id,jdbcType=INTEGER}, #{questionId,jdbcType=INTEGER}, #{examPaperId,jdbcType=INTEGER},
#{examPaperAnswerId,jdbcType=INTEGER}, #{questionType,jdbcType=INTEGER}, #{subjectId,jdbcType=INTEGER},
#{customerScore,jdbcType=INTEGER}, #{questionScore,jdbcType=INTEGER}, #{questionTextContentId,jdbcType=INTEGER},
#{answer,jdbcType=VARCHAR}, #{textContentId,jdbcType=INTEGER}, #{doRight,jdbcType=BIT},
#{createUser,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{itemOrder,jdbcType=INTEGER}
)
insert into t_exam_paper_question_customer_answer
id,
question_id,
exam_paper_id,
exam_paper_answer_id,
question_type,
subject_id,
customer_score,
question_score,
question_text_content_id,
answer,
text_content_id,
do_right,
create_user,
create_time,
item_order,
#{id,jdbcType=INTEGER},
#{questionId,jdbcType=INTEGER},
#{examPaperId,jdbcType=INTEGER},
#{examPaperAnswerId,jdbcType=INTEGER},
#{questionType,jdbcType=INTEGER},
#{subjectId,jdbcType=INTEGER},
#{customerScore,jdbcType=INTEGER},
#{questionScore,jdbcType=INTEGER},
#{questionTextContentId,jdbcType=INTEGER},
#{answer,jdbcType=VARCHAR},
#{textContentId,jdbcType=INTEGER},
#{doRight,jdbcType=BIT},
#{createUser,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{itemOrder,jdbcType=INTEGER},
update t_exam_paper_question_customer_answer
question_id = #{questionId,jdbcType=INTEGER},
exam_paper_id = #{examPaperId,jdbcType=INTEGER},
exam_paper_answer_id = #{examPaperAnswerId,jdbcType=INTEGER},
question_type = #{questionType,jdbcType=INTEGER},
subject_id = #{subjectId,jdbcType=INTEGER},
customer_score = #{customerScore,jdbcType=INTEGER},
question_score = #{questionScore,jdbcType=INTEGER},
question_text_content_id = #{questionTextContentId,jdbcType=INTEGER},
answer = #{answer,jdbcType=VARCHAR},
text_content_id = #{textContentId,jdbcType=INTEGER},
do_right = #{doRight,jdbcType=BIT},
create_user = #{createUser,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
item_order = #{itemOrder,jdbcType=INTEGER},
where id = #{id,jdbcType=INTEGER}
update t_exam_paper_question_customer_answer
set question_id = #{questionId,jdbcType=INTEGER},
exam_paper_id = #{examPaperId,jdbcType=INTEGER},
exam_paper_answer_id = #{examPaperAnswerId,jdbcType=INTEGER},
question_type = #{questionType,jdbcType=INTEGER},
subject_id = #{subjectId,jdbcType=INTEGER},
customer_score = #{customerScore,jdbcType=INTEGER},
question_score = #{questionScore,jdbcType=INTEGER},
question_text_content_id = #{questionTextContentId,jdbcType=INTEGER},
answer = #{answer,jdbcType=VARCHAR},
text_content_id = #{textContentId,jdbcType=INTEGER},
do_right = #{doRight,jdbcType=BIT},
create_user = #{createUser,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
item_order = #{itemOrder,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
insert into t_exam_paper_question_customer_answer ( question_id, question_score,
subject_id, create_time, create_user,
text_content_id, exam_paper_id, question_type,
answer, customer_score, exam_paper_answer_id ,
do_right,question_text_content_id,item_order)
values
( #{item.questionId,jdbcType=INTEGER}, #{item.questionScore,jdbcType=INTEGER},
#{item.subjectId,jdbcType=INTEGER}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.createUser,jdbcType=INTEGER},
#{item.textContentId,jdbcType=INTEGER}, #{item.examPaperId,jdbcType=INTEGER}, #{item.questionType,jdbcType=INTEGER},
#{item.answer,jdbcType=VARCHAR}, #{item.customerScore,jdbcType=INTEGER}, #{item.examPaperAnswerId,jdbcType=INTEGER},
#{item.doRight,jdbcType=BIT},#{item.questionTextContentId,jdbcType=INTEGER},#{item.itemOrder,jdbcType=INTEGER})
update t_exam_paper_question_customer_answer
set customer_score=#{item.customerScore} , do_right=#{item.doRight}
where id=#{item.id} ;