id
, question_type, subject_id, score, grade_level, difficult, correct, info_text_content_id,
create_user, status, create_time, deleted
delete
from t_question
where id = #{id,jdbcType=INTEGER}
insert into t_question (id, question_type, subject_id,
score, grade_level, difficult,
correct, info_text_content_id, create_user,
status, create_time, deleted)
values (#{id,jdbcType=INTEGER}, #{questionType,jdbcType=INTEGER}, #{subjectId,jdbcType=INTEGER},
#{score,jdbcType=INTEGER}, #{gradeLevel,jdbcType=INTEGER}, #{difficult,jdbcType=INTEGER},
#{correct,jdbcType=VARCHAR}, #{infoTextContentId,jdbcType=INTEGER}, #{createUser,jdbcType=INTEGER},
#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=BIT})
insert into t_question
id,
question_type,
subject_id,
score,
grade_level,
difficult,
correct,
info_text_content_id,
create_user,
status,
create_time,
deleted,
#{id,jdbcType=INTEGER},
#{questionType,jdbcType=INTEGER},
#{subjectId,jdbcType=INTEGER},
#{score,jdbcType=INTEGER},
#{gradeLevel,jdbcType=INTEGER},
#{difficult,jdbcType=INTEGER},
#{correct,jdbcType=VARCHAR},
#{infoTextContentId,jdbcType=INTEGER},
#{createUser,jdbcType=INTEGER},
#{status,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=BIT},
update t_question
question_type = #{questionType,jdbcType=INTEGER},
subject_id = #{subjectId,jdbcType=INTEGER},
score = #{score,jdbcType=INTEGER},
grade_level = #{gradeLevel,jdbcType=INTEGER},
difficult = #{difficult,jdbcType=INTEGER},
correct = #{correct,jdbcType=VARCHAR},
info_text_content_id = #{infoTextContentId,jdbcType=INTEGER},
create_user = #{createUser,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT},
where id = #{id,jdbcType=INTEGER}
update t_question
set question_type = #{questionType,jdbcType=INTEGER},
subject_id = #{subjectId,jdbcType=INTEGER},
score = #{score,jdbcType=INTEGER},
grade_level = #{gradeLevel,jdbcType=INTEGER},
difficult = #{difficult,jdbcType=INTEGER},
correct = #{correct,jdbcType=VARCHAR},
info_text_content_id = #{infoTextContentId,jdbcType=INTEGER},
create_user = #{createUser,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT}
where id = #{id,jdbcType=INTEGER}