|
|
|
@ -4,15 +4,19 @@
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.financial_bigdata.entity.SysCaseQuestion">
|
|
|
|
|
<id column="case_id" jdbcType="VARCHAR" property="caseId" />
|
|
|
|
|
<result column="course_id" jdbcType="VARCHAR" property="courseId" />
|
|
|
|
|
<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="title" jdbcType="VARCHAR" property="title" />
|
|
|
|
|
<result column="content" jdbcType="VARCHAR" property="content" />
|
|
|
|
|
<result column="resource_data" jdbcType="VARCHAR" property="resourceData" />
|
|
|
|
|
<result column="input_type" jdbcType="VARCHAR" property="inputType" />
|
|
|
|
|
<result column="type" jdbcType="VARCHAR" property="type" />
|
|
|
|
|
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
|
|
|
|
<result column="unmount_status" jdbcType="BIT" property="unmountStatus" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.financial_bigdata.entity.SysCaseQuestion">
|
|
|
|
|
<result column="content" jdbcType="LONGVARCHAR" property="content" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
|
@ -72,9 +76,28 @@
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
case_id, course_id, chapter_id, title, content, resource_data, input_type, type,
|
|
|
|
|
school_id, unmount_status
|
|
|
|
|
case_id, course_id, course_name, chapter_id, chapter_name, title, resource_data,
|
|
|
|
|
input_type, type, school_id, unmount_status
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Blob_Column_List">
|
|
|
|
|
content
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.financial_bigdata.entity.SysCaseQuestionExample" resultMap="ResultMapWithBLOBs">
|
|
|
|
|
select
|
|
|
|
|
<if test="distinct">
|
|
|
|
|
distinct
|
|
|
|
|
</if>
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
,
|
|
|
|
|
<include refid="Blob_Column_List" />
|
|
|
|
|
from sys_case_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.SysCaseQuestionExample" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<if test="distinct">
|
|
|
|
@ -89,9 +112,11 @@
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
,
|
|
|
|
|
<include refid="Blob_Column_List" />
|
|
|
|
|
from sys_case_question
|
|
|
|
|
where case_id = #{caseId,jdbcType=VARCHAR}
|
|
|
|
|
</select>
|
|
|
|
@ -106,14 +131,16 @@
|
|
|
|
|
</if>
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.financial_bigdata.entity.SysCaseQuestion">
|
|
|
|
|
insert into sys_case_question (case_id, course_id, chapter_id,
|
|
|
|
|
title, content, resource_data,
|
|
|
|
|
input_type, type, school_id,
|
|
|
|
|
unmount_status)
|
|
|
|
|
values (#{caseId,jdbcType=VARCHAR}, #{courseId,jdbcType=VARCHAR}, #{chapterId,jdbcType=VARCHAR},
|
|
|
|
|
#{title,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{resourceData,jdbcType=VARCHAR},
|
|
|
|
|
#{inputType,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
#{unmountStatus,jdbcType=BIT})
|
|
|
|
|
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
|
|
|
|
|
)
|
|
|
|
|
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}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.financial_bigdata.entity.SysCaseQuestion">
|
|
|
|
|
insert into sys_case_question
|
|
|
|
@ -124,15 +151,18 @@
|
|
|
|
|
<if test="courseId != null">
|
|
|
|
|
course_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="courseName != null">
|
|
|
|
|
course_name,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="chapterId != null">
|
|
|
|
|
chapter_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="chapterName != null">
|
|
|
|
|
chapter_name,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="title != null">
|
|
|
|
|
title,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="content != null">
|
|
|
|
|
content,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="resourceData != null">
|
|
|
|
|
resource_data,
|
|
|
|
|
</if>
|
|
|
|
@ -148,6 +178,9 @@
|
|
|
|
|
<if test="unmountStatus != null">
|
|
|
|
|
unmount_status,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="content != null">
|
|
|
|
|
content,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="caseId != null">
|
|
|
|
@ -156,15 +189,18 @@
|
|
|
|
|
<if test="courseId != null">
|
|
|
|
|
#{courseId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="courseName != null">
|
|
|
|
|
#{courseName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="chapterId != null">
|
|
|
|
|
#{chapterId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="chapterName != null">
|
|
|
|
|
#{chapterName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="title != null">
|
|
|
|
|
#{title,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="content != null">
|
|
|
|
|
#{content,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="resourceData != null">
|
|
|
|
|
#{resourceData,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -180,6 +216,9 @@
|
|
|
|
|
<if test="unmountStatus != null">
|
|
|
|
|
#{unmountStatus,jdbcType=BIT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="content != null">
|
|
|
|
|
#{content,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.financial_bigdata.entity.SysCaseQuestionExample" resultType="java.lang.Long">
|
|
|
|
@ -197,15 +236,18 @@
|
|
|
|
|
<if test="record.courseId != null">
|
|
|
|
|
course_id = #{record.courseId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.courseName != null">
|
|
|
|
|
course_name = #{record.courseName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.chapterId != null">
|
|
|
|
|
chapter_id = #{record.chapterId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.chapterName != null">
|
|
|
|
|
chapter_name = #{record.chapterName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.title != null">
|
|
|
|
|
title = #{record.title,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.content != null">
|
|
|
|
|
content = #{record.content,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.resourceData != null">
|
|
|
|
|
resource_data = #{record.resourceData,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -221,18 +263,40 @@
|
|
|
|
|
<if test="record.unmountStatus != null">
|
|
|
|
|
unmount_status = #{record.unmountStatus,jdbcType=BIT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.content != null">
|
|
|
|
|
content = #{record.content,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
|
|
update sys_case_question
|
|
|
|
|
set case_id = #{record.caseId,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},
|
|
|
|
|
title = #{record.title,jdbcType=VARCHAR},
|
|
|
|
|
resource_data = #{record.resourceData,jdbcType=VARCHAR},
|
|
|
|
|
input_type = #{record.inputType,jdbcType=VARCHAR},
|
|
|
|
|
type = #{record.type,jdbcType=VARCHAR},
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
|
|
|
|
unmount_status = #{record.unmountStatus,jdbcType=BIT},
|
|
|
|
|
content = #{record.content,jdbcType=LONGVARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
|
update sys_case_question
|
|
|
|
|
set case_id = #{record.caseId,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},
|
|
|
|
|
title = #{record.title,jdbcType=VARCHAR},
|
|
|
|
|
content = #{record.content,jdbcType=VARCHAR},
|
|
|
|
|
resource_data = #{record.resourceData,jdbcType=VARCHAR},
|
|
|
|
|
input_type = #{record.inputType,jdbcType=VARCHAR},
|
|
|
|
|
type = #{record.type,jdbcType=VARCHAR},
|
|
|
|
@ -248,15 +312,18 @@
|
|
|
|
|
<if test="courseId != null">
|
|
|
|
|
course_id = #{courseId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="courseName != null">
|
|
|
|
|
course_name = #{courseName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="chapterId != null">
|
|
|
|
|
chapter_id = #{chapterId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="chapterName != null">
|
|
|
|
|
chapter_name = #{chapterName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="title != null">
|
|
|
|
|
title = #{title,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="content != null">
|
|
|
|
|
content = #{content,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="resourceData != null">
|
|
|
|
|
resource_data = #{resourceData,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -272,15 +339,34 @@
|
|
|
|
|
<if test="unmountStatus != null">
|
|
|
|
|
unmount_status = #{unmountStatus,jdbcType=BIT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="content != null">
|
|
|
|
|
content = #{content,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where case_id = #{caseId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.financial_bigdata.entity.SysCaseQuestion">
|
|
|
|
|
update sys_case_question
|
|
|
|
|
set course_id = #{courseId,jdbcType=VARCHAR},
|
|
|
|
|
course_name = #{courseName,jdbcType=VARCHAR},
|
|
|
|
|
chapter_id = #{chapterId,jdbcType=VARCHAR},
|
|
|
|
|
chapter_name = #{chapterName,jdbcType=VARCHAR},
|
|
|
|
|
title = #{title,jdbcType=VARCHAR},
|
|
|
|
|
resource_data = #{resourceData,jdbcType=VARCHAR},
|
|
|
|
|
input_type = #{inputType,jdbcType=VARCHAR},
|
|
|
|
|
type = #{type,jdbcType=VARCHAR},
|
|
|
|
|
school_id = #{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
unmount_status = #{unmountStatus,jdbcType=BIT},
|
|
|
|
|
content = #{content,jdbcType=LONGVARCHAR}
|
|
|
|
|
where case_id = #{caseId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.financial_bigdata.entity.SysCaseQuestion">
|
|
|
|
|
update sys_case_question
|
|
|
|
|
set course_id = #{courseId,jdbcType=VARCHAR},
|
|
|
|
|
course_name = #{courseName,jdbcType=VARCHAR},
|
|
|
|
|
chapter_id = #{chapterId,jdbcType=VARCHAR},
|
|
|
|
|
chapter_name = #{chapterName,jdbcType=VARCHAR},
|
|
|
|
|
title = #{title,jdbcType=VARCHAR},
|
|
|
|
|
content = #{content,jdbcType=VARCHAR},
|
|
|
|
|
resource_data = #{resourceData,jdbcType=VARCHAR},
|
|
|
|
|
input_type = #{inputType,jdbcType=VARCHAR},
|
|
|
|
|
type = #{type,jdbcType=VARCHAR},
|
|
|
|
@ -288,4 +374,4 @@
|
|
|
|
|
unmount_status = #{unmountStatus,jdbcType=BIT}
|
|
|
|
|
where case_id = #{caseId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|
|
|
|
|
</mapper>
|