|
|
|
@ -7,19 +7,18 @@
|
|
|
|
|
<result column="course_name" jdbcType="VARCHAR" property="courseName" />
|
|
|
|
|
<result column="chapter_id" jdbcType="VARCHAR" property="chapterId" />
|
|
|
|
|
<result column="chapter_name" jdbcType="VARCHAR" property="chapterName" />
|
|
|
|
|
<result column="input_type" jdbcType="CHAR" property="inputType" />
|
|
|
|
|
<result column="type" jdbcType="CHAR" property="type" />
|
|
|
|
|
<result column="input_type" jdbcType="VARCHAR" property="inputType" />
|
|
|
|
|
<result column="type" jdbcType="VARCHAR" property="type" />
|
|
|
|
|
<result column="score" jdbcType="DECIMAL" property="score" />
|
|
|
|
|
<result column="content" jdbcType="VARCHAR" property="content" />
|
|
|
|
|
<result column="question_a" jdbcType="VARCHAR" property="questionA" />
|
|
|
|
|
<result column="question_b" jdbcType="VARCHAR" property="questionB" />
|
|
|
|
|
<result column="question_c" jdbcType="VARCHAR" property="questionC" />
|
|
|
|
|
<result column="question_d" jdbcType="VARCHAR" property="questionD" />
|
|
|
|
|
<result column="question_e" jdbcType="VARCHAR" property="questionE" />
|
|
|
|
|
<result column="answer" jdbcType="VARCHAR" property="answer" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.financial_bigdata.entity.SysObjectiveQuestionWithBLOBs">
|
|
|
|
|
<result column="content" jdbcType="LONGVARCHAR" property="content" />
|
|
|
|
|
<result column="analyze" jdbcType="LONGVARCHAR" property="analyze" />
|
|
|
|
|
<result column="analyze" jdbcType="VARCHAR" property="analyze" />
|
|
|
|
|
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
@ -81,27 +80,9 @@
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
objective_id, course_id, course_name, chapter_id, chapter_name, input_type, type,
|
|
|
|
|
score, question_a, question_b, question_c, question_d, question_e, answer
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Blob_Column_List">
|
|
|
|
|
content, analyze
|
|
|
|
|
score, content, question_a, question_b, question_c, question_d, question_e, answer,
|
|
|
|
|
analyze, school_id
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.financial_bigdata.entity.SysObjectiveQuestionExample" resultMap="ResultMapWithBLOBs">
|
|
|
|
|
select
|
|
|
|
|
<if test="distinct">
|
|
|
|
|
distinct
|
|
|
|
|
</if>
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
,
|
|
|
|
|
<include refid="Blob_Column_List" />
|
|
|
|
|
from sys_objective_question
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderByClause != null">
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.financial_bigdata.entity.SysObjectiveQuestionExample" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<if test="distinct">
|
|
|
|
@ -116,11 +97,9 @@
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
,
|
|
|
|
|
<include refid="Blob_Column_List" />
|
|
|
|
|
from sys_objective_question
|
|
|
|
|
where objective_id = #{objectiveId,jdbcType=VARCHAR}
|
|
|
|
|
</select>
|
|
|
|
@ -134,21 +113,21 @@
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.financial_bigdata.entity.SysObjectiveQuestionWithBLOBs">
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.financial_bigdata.entity.SysObjectiveQuestion">
|
|
|
|
|
insert into sys_objective_question (objective_id, course_id, course_name,
|
|
|
|
|
chapter_id, chapter_name, input_type,
|
|
|
|
|
type, score, question_a,
|
|
|
|
|
question_b, question_c, question_d,
|
|
|
|
|
question_e, answer, content,
|
|
|
|
|
analyze)
|
|
|
|
|
type, score, content,
|
|
|
|
|
question_a, question_b, question_c,
|
|
|
|
|
question_d, question_e, answer,
|
|
|
|
|
analyze, school_id)
|
|
|
|
|
values (#{objectiveId,jdbcType=VARCHAR}, #{courseId,jdbcType=VARCHAR}, #{courseName,jdbcType=VARCHAR},
|
|
|
|
|
#{chapterId,jdbcType=VARCHAR}, #{chapterName,jdbcType=VARCHAR}, #{inputType,jdbcType=CHAR},
|
|
|
|
|
#{type,jdbcType=CHAR}, #{score,jdbcType=DECIMAL}, #{questionA,jdbcType=VARCHAR},
|
|
|
|
|
#{questionB,jdbcType=VARCHAR}, #{questionC,jdbcType=VARCHAR}, #{questionD,jdbcType=VARCHAR},
|
|
|
|
|
#{questionE,jdbcType=VARCHAR}, #{answer,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR},
|
|
|
|
|
#{analyze,jdbcType=LONGVARCHAR})
|
|
|
|
|
#{chapterId,jdbcType=VARCHAR}, #{chapterName,jdbcType=VARCHAR}, #{inputType,jdbcType=VARCHAR},
|
|
|
|
|
#{type,jdbcType=VARCHAR}, #{score,jdbcType=DECIMAL}, #{content,jdbcType=VARCHAR},
|
|
|
|
|
#{questionA,jdbcType=VARCHAR}, #{questionB,jdbcType=VARCHAR}, #{questionC,jdbcType=VARCHAR},
|
|
|
|
|
#{questionD,jdbcType=VARCHAR}, #{questionE,jdbcType=VARCHAR}, #{answer,jdbcType=VARCHAR},
|
|
|
|
|
#{analyze,jdbcType=VARCHAR}, #{schoolId,jdbcType=VARCHAR})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.financial_bigdata.entity.SysObjectiveQuestionWithBLOBs">
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.financial_bigdata.entity.SysObjectiveQuestion">
|
|
|
|
|
insert into sys_objective_question
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="objectiveId != null">
|
|
|
|
@ -175,6 +154,9 @@
|
|
|
|
|
<if test="score != null">
|
|
|
|
|
score,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="content != null">
|
|
|
|
|
content,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="questionA != null">
|
|
|
|
|
question_a,
|
|
|
|
|
</if>
|
|
|
|
@ -193,12 +175,12 @@
|
|
|
|
|
<if test="answer != null">
|
|
|
|
|
answer,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="content != null">
|
|
|
|
|
content,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="analyze != null">
|
|
|
|
|
analyze,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
school_id,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="objectiveId != null">
|
|
|
|
@ -217,14 +199,17 @@
|
|
|
|
|
#{chapterName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="inputType != null">
|
|
|
|
|
#{inputType,jdbcType=CHAR},
|
|
|
|
|
#{inputType,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="type != null">
|
|
|
|
|
#{type,jdbcType=CHAR},
|
|
|
|
|
#{type,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="score != null">
|
|
|
|
|
#{score,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="content != null">
|
|
|
|
|
#{content,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="questionA != null">
|
|
|
|
|
#{questionA,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -243,11 +228,11 @@
|
|
|
|
|
<if test="answer != null">
|
|
|
|
|
#{answer,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="content != null">
|
|
|
|
|
#{content,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="analyze != null">
|
|
|
|
|
#{analyze,jdbcType=LONGVARCHAR},
|
|
|
|
|
#{analyze,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
#{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
@ -276,14 +261,17 @@
|
|
|
|
|
chapter_name = #{record.chapterName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.inputType != null">
|
|
|
|
|
input_type = #{record.inputType,jdbcType=CHAR},
|
|
|
|
|
input_type = #{record.inputType,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.type != null">
|
|
|
|
|
type = #{record.type,jdbcType=CHAR},
|
|
|
|
|
type = #{record.type,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.score != null">
|
|
|
|
|
score = #{record.score,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.content != null">
|
|
|
|
|
content = #{record.content,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.questionA != null">
|
|
|
|
|
question_a = #{record.questionA,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -302,39 +290,17 @@
|
|
|
|
|
<if test="record.answer != null">
|
|
|
|
|
answer = #{record.answer,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.content != null">
|
|
|
|
|
content = #{record.content,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.analyze != null">
|
|
|
|
|
analyze = #{record.analyze,jdbcType=LONGVARCHAR},
|
|
|
|
|
analyze = #{record.analyze,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.schoolId != null">
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
|
|
update sys_objective_question
|
|
|
|
|
set objective_id = #{record.objectiveId,jdbcType=VARCHAR},
|
|
|
|
|
course_id = #{record.courseId,jdbcType=VARCHAR},
|
|
|
|
|
course_name = #{record.courseName,jdbcType=VARCHAR},
|
|
|
|
|
chapter_id = #{record.chapterId,jdbcType=VARCHAR},
|
|
|
|
|
chapter_name = #{record.chapterName,jdbcType=VARCHAR},
|
|
|
|
|
input_type = #{record.inputType,jdbcType=CHAR},
|
|
|
|
|
type = #{record.type,jdbcType=CHAR},
|
|
|
|
|
score = #{record.score,jdbcType=DECIMAL},
|
|
|
|
|
question_a = #{record.questionA,jdbcType=VARCHAR},
|
|
|
|
|
question_b = #{record.questionB,jdbcType=VARCHAR},
|
|
|
|
|
question_c = #{record.questionC,jdbcType=VARCHAR},
|
|
|
|
|
question_d = #{record.questionD,jdbcType=VARCHAR},
|
|
|
|
|
question_e = #{record.questionE,jdbcType=VARCHAR},
|
|
|
|
|
answer = #{record.answer,jdbcType=VARCHAR},
|
|
|
|
|
content = #{record.content,jdbcType=LONGVARCHAR},
|
|
|
|
|
analyze = #{record.analyze,jdbcType=LONGVARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
|
update sys_objective_question
|
|
|
|
|
set objective_id = #{record.objectiveId,jdbcType=VARCHAR},
|
|
|
|
@ -342,20 +308,23 @@
|
|
|
|
|
course_name = #{record.courseName,jdbcType=VARCHAR},
|
|
|
|
|
chapter_id = #{record.chapterId,jdbcType=VARCHAR},
|
|
|
|
|
chapter_name = #{record.chapterName,jdbcType=VARCHAR},
|
|
|
|
|
input_type = #{record.inputType,jdbcType=CHAR},
|
|
|
|
|
type = #{record.type,jdbcType=CHAR},
|
|
|
|
|
input_type = #{record.inputType,jdbcType=VARCHAR},
|
|
|
|
|
type = #{record.type,jdbcType=VARCHAR},
|
|
|
|
|
score = #{record.score,jdbcType=DECIMAL},
|
|
|
|
|
content = #{record.content,jdbcType=VARCHAR},
|
|
|
|
|
question_a = #{record.questionA,jdbcType=VARCHAR},
|
|
|
|
|
question_b = #{record.questionB,jdbcType=VARCHAR},
|
|
|
|
|
question_c = #{record.questionC,jdbcType=VARCHAR},
|
|
|
|
|
question_d = #{record.questionD,jdbcType=VARCHAR},
|
|
|
|
|
question_e = #{record.questionE,jdbcType=VARCHAR},
|
|
|
|
|
answer = #{record.answer,jdbcType=VARCHAR}
|
|
|
|
|
answer = #{record.answer,jdbcType=VARCHAR},
|
|
|
|
|
analyze = #{record.analyze,jdbcType=VARCHAR},
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.financial_bigdata.entity.SysObjectiveQuestionWithBLOBs">
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.financial_bigdata.entity.SysObjectiveQuestion">
|
|
|
|
|
update sys_objective_question
|
|
|
|
|
<set>
|
|
|
|
|
<if test="courseId != null">
|
|
|
|
@ -371,14 +340,17 @@
|
|
|
|
|
chapter_name = #{chapterName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="inputType != null">
|
|
|
|
|
input_type = #{inputType,jdbcType=CHAR},
|
|
|
|
|
input_type = #{inputType,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="type != null">
|
|
|
|
|
type = #{type,jdbcType=CHAR},
|
|
|
|
|
type = #{type,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="score != null">
|
|
|
|
|
score = #{score,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="content != null">
|
|
|
|
|
content = #{content,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="questionA != null">
|
|
|
|
|
question_a = #{questionA,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -397,49 +369,33 @@
|
|
|
|
|
<if test="answer != null">
|
|
|
|
|
answer = #{answer,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="content != null">
|
|
|
|
|
content = #{content,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="analyze != null">
|
|
|
|
|
analyze = #{analyze,jdbcType=LONGVARCHAR},
|
|
|
|
|
analyze = #{analyze,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
school_id = #{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where objective_id = #{objectiveId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.financial_bigdata.entity.SysObjectiveQuestionWithBLOBs">
|
|
|
|
|
update sys_objective_question
|
|
|
|
|
set course_id = #{courseId,jdbcType=VARCHAR},
|
|
|
|
|
course_name = #{courseName,jdbcType=VARCHAR},
|
|
|
|
|
chapter_id = #{chapterId,jdbcType=VARCHAR},
|
|
|
|
|
chapter_name = #{chapterName,jdbcType=VARCHAR},
|
|
|
|
|
input_type = #{inputType,jdbcType=CHAR},
|
|
|
|
|
type = #{type,jdbcType=CHAR},
|
|
|
|
|
score = #{score,jdbcType=DECIMAL},
|
|
|
|
|
question_a = #{questionA,jdbcType=VARCHAR},
|
|
|
|
|
question_b = #{questionB,jdbcType=VARCHAR},
|
|
|
|
|
question_c = #{questionC,jdbcType=VARCHAR},
|
|
|
|
|
question_d = #{questionD,jdbcType=VARCHAR},
|
|
|
|
|
question_e = #{questionE,jdbcType=VARCHAR},
|
|
|
|
|
answer = #{answer,jdbcType=VARCHAR},
|
|
|
|
|
content = #{content,jdbcType=LONGVARCHAR},
|
|
|
|
|
analyze = #{analyze,jdbcType=LONGVARCHAR}
|
|
|
|
|
where objective_id = #{objectiveId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.financial_bigdata.entity.SysObjectiveQuestion">
|
|
|
|
|
update sys_objective_question
|
|
|
|
|
set course_id = #{courseId,jdbcType=VARCHAR},
|
|
|
|
|
course_name = #{courseName,jdbcType=VARCHAR},
|
|
|
|
|
chapter_id = #{chapterId,jdbcType=VARCHAR},
|
|
|
|
|
chapter_name = #{chapterName,jdbcType=VARCHAR},
|
|
|
|
|
input_type = #{inputType,jdbcType=CHAR},
|
|
|
|
|
type = #{type,jdbcType=CHAR},
|
|
|
|
|
input_type = #{inputType,jdbcType=VARCHAR},
|
|
|
|
|
type = #{type,jdbcType=VARCHAR},
|
|
|
|
|
score = #{score,jdbcType=DECIMAL},
|
|
|
|
|
content = #{content,jdbcType=VARCHAR},
|
|
|
|
|
question_a = #{questionA,jdbcType=VARCHAR},
|
|
|
|
|
question_b = #{questionB,jdbcType=VARCHAR},
|
|
|
|
|
question_c = #{questionC,jdbcType=VARCHAR},
|
|
|
|
|
question_d = #{questionD,jdbcType=VARCHAR},
|
|
|
|
|
question_e = #{questionE,jdbcType=VARCHAR},
|
|
|
|
|
answer = #{answer,jdbcType=VARCHAR}
|
|
|
|
|
answer = #{answer,jdbcType=VARCHAR},
|
|
|
|
|
analyze = #{analyze,jdbcType=VARCHAR},
|
|
|
|
|
school_id = #{schoolId,jdbcType=VARCHAR}
|
|
|
|
|
where objective_id = #{objectiveId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|