|
|
|
@ -13,6 +13,7 @@
|
|
|
|
|
<result column="type" jdbcType="VARCHAR" property="type" />
|
|
|
|
|
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
|
|
|
|
<result column="unmount_status" jdbcType="BIT" property="unmountStatus" />
|
|
|
|
|
<result column="insert_time" jdbcType="TIMESTAMP" property="insertTime" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.financial_bigdata.entity.SysCaseQuestion">
|
|
|
|
|
<result column="content" jdbcType="LONGVARCHAR" property="content" />
|
|
|
|
@ -77,7 +78,7 @@
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
case_id, course_id, course_name, chapter_id, chapter_name, title, resource_data,
|
|
|
|
|
input_type, type, school_id, unmount_status
|
|
|
|
|
input_type, type, school_id, unmount_status, insert_time
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Blob_Column_List">
|
|
|
|
|
content
|
|
|
|
@ -134,13 +135,13 @@
|
|
|
|
|
insert into sys_case_question (case_id, course_id, course_name,
|
|
|
|
|
chapter_id, chapter_name, title,
|
|
|
|
|
resource_data, input_type, type,
|
|
|
|
|
school_id, unmount_status, content
|
|
|
|
|
)
|
|
|
|
|
school_id, unmount_status, insert_time,
|
|
|
|
|
content)
|
|
|
|
|
values (#{caseId,jdbcType=VARCHAR}, #{courseId,jdbcType=VARCHAR}, #{courseName,jdbcType=VARCHAR},
|
|
|
|
|
#{chapterId,jdbcType=VARCHAR}, #{chapterName,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
|
|
|
|
|
#{resourceData,jdbcType=VARCHAR}, #{inputType,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
|
|
|
|
|
#{schoolId,jdbcType=VARCHAR}, #{unmountStatus,jdbcType=BIT}, #{content,jdbcType=LONGVARCHAR}
|
|
|
|
|
)
|
|
|
|
|
#{schoolId,jdbcType=VARCHAR}, #{unmountStatus,jdbcType=BIT}, #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{content,jdbcType=LONGVARCHAR})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.financial_bigdata.entity.SysCaseQuestion">
|
|
|
|
|
insert into sys_case_question
|
|
|
|
@ -178,6 +179,9 @@
|
|
|
|
|
<if test="unmountStatus != null">
|
|
|
|
|
unmount_status,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="insertTime != null">
|
|
|
|
|
insert_time,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="content != null">
|
|
|
|
|
content,
|
|
|
|
|
</if>
|
|
|
|
@ -216,6 +220,9 @@
|
|
|
|
|
<if test="unmountStatus != null">
|
|
|
|
|
#{unmountStatus,jdbcType=BIT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="insertTime != null">
|
|
|
|
|
#{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="content != null">
|
|
|
|
|
#{content,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -263,6 +270,9 @@
|
|
|
|
|
<if test="record.unmountStatus != null">
|
|
|
|
|
unmount_status = #{record.unmountStatus,jdbcType=BIT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.insertTime != null">
|
|
|
|
|
insert_time = #{record.insertTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.content != null">
|
|
|
|
|
content = #{record.content,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -284,6 +294,7 @@
|
|
|
|
|
type = #{record.type,jdbcType=VARCHAR},
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
|
|
|
|
unmount_status = #{record.unmountStatus,jdbcType=BIT},
|
|
|
|
|
insert_time = #{record.insertTime,jdbcType=TIMESTAMP},
|
|
|
|
|
content = #{record.content,jdbcType=LONGVARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
@ -301,7 +312,8 @@
|
|
|
|
|
input_type = #{record.inputType,jdbcType=VARCHAR},
|
|
|
|
|
type = #{record.type,jdbcType=VARCHAR},
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
|
|
|
|
unmount_status = #{record.unmountStatus,jdbcType=BIT}
|
|
|
|
|
unmount_status = #{record.unmountStatus,jdbcType=BIT},
|
|
|
|
|
insert_time = #{record.insertTime,jdbcType=TIMESTAMP}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
@ -339,6 +351,9 @@
|
|
|
|
|
<if test="unmountStatus != null">
|
|
|
|
|
unmount_status = #{unmountStatus,jdbcType=BIT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="insertTime != null">
|
|
|
|
|
insert_time = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="content != null">
|
|
|
|
|
content = #{content,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -357,6 +372,7 @@
|
|
|
|
|
type = #{type,jdbcType=VARCHAR},
|
|
|
|
|
school_id = #{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
unmount_status = #{unmountStatus,jdbcType=BIT},
|
|
|
|
|
insert_time = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
|
content = #{content,jdbcType=LONGVARCHAR}
|
|
|
|
|
where case_id = #{caseId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
@ -371,7 +387,8 @@
|
|
|
|
|
input_type = #{inputType,jdbcType=VARCHAR},
|
|
|
|
|
type = #{type,jdbcType=VARCHAR},
|
|
|
|
|
school_id = #{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
unmount_status = #{unmountStatus,jdbcType=BIT}
|
|
|
|
|
unmount_status = #{unmountStatus,jdbcType=BIT},
|
|
|
|
|
insert_time = #{insertTime,jdbcType=TIMESTAMP}
|
|
|
|
|
where case_id = #{caseId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|