理论试题管理代码调整

This commit is contained in:
tiger_zhou 2022-09-27 14:42:55 +08:00
parent 3489df9245
commit 207246c5b2

View File

@ -77,10 +77,7 @@
</where>
</sql>
<sql id="Base_Column_List">
id, `type`, create_user_id, create_time, project_code, company_id, race_lable, is_del,question_answer
</sql>
<sql id="Blob_Column_List">
question, question_option
id, `type`, create_user_id, create_time, project_code, company_id, race_lable, is_del,question_answer,question, question_option
</sql>
<!--<select id="selectByExampleWithBLOBs" parameterType="club.joylink.rtss.entity.race2.PaperQuestionExample" resultMap="ResultMapWithBLOBs">
select
@ -112,8 +109,7 @@
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from paper_question
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
@ -133,8 +129,7 @@
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from paper_question
where id = #{id,jdbcType=BIGINT}
</select>
@ -148,7 +143,7 @@
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestionWithBLOBs">
<insert id="insert" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestion">
insert into paper_question (id, `type`, create_user_id,
create_time, project_code, company_id,
race_lable, is_del, question,
@ -159,7 +154,7 @@
#{raceLable,jdbcType=VARCHAR}, #{isDel,jdbcType=INTEGER}, #{question,jdbcType=LONGVARCHAR},
#{questionOption,jdbcType=LONGVARCHAR},#{questionAnswer,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestionWithBLOBs">
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestion">
insert into paper_question
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
@ -313,7 +308,7 @@
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestionWithBLOBs">
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestion">
update paper_question
<set>
<if test="type != null">