id, question_type, subject_id, industry_id, skill_id, score, grade_level, difficult, correct, info_text_content_id,
create_user, status, create_time, deleted
q.id, q.question_type, q.subject_id, q.industry_id, i.name AS industry_name, q.skill_id, s.name AS skill_name, q.score, q.grade_level, q.difficult, q.correct, q.info_text_content_id,
q.create_user, q.status, q.create_time, q.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,
industry_id,
skill_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},
#{industryId,jdbcType=INTEGER},
#{skillId,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},
industry_id = #{industryId,jdbcType=INTEGER},
skill_id = #{skillId,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}