|
|
@ -5,9 +5,10 @@
|
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
|
<result column="topic_id" jdbcType="VARCHAR" property="topicId" />
|
|
|
|
<result column="topic_id" jdbcType="VARCHAR" property="topicId" />
|
|
|
|
<result column="flow_id" jdbcType="VARCHAR" property="flowId" />
|
|
|
|
<result column="flow_id" jdbcType="VARCHAR" property="flowId" />
|
|
|
|
|
|
|
|
<result column="topic_content" jdbcType="VARCHAR" property="topicContent" />
|
|
|
|
|
|
|
|
<result column="choices" jdbcType="VARCHAR" property="choices" />
|
|
|
|
<result column="user_answer" jdbcType="VARCHAR" property="userAnswer" />
|
|
|
|
<result column="user_answer" jdbcType="VARCHAR" property="userAnswer" />
|
|
|
|
<result column="answer" jdbcType="VARCHAR" property="answer" />
|
|
|
|
<result column="answer" jdbcType="VARCHAR" property="answer" />
|
|
|
|
<result column="topic_content" jdbcType="VARCHAR" property="topicContent" />
|
|
|
|
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
@ -68,7 +69,7 @@
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
id, topic_id, flow_id, user_answer, answer, topic_content
|
|
|
|
id, topic_id, flow_id, topic_content, choices, user_answer, answer
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.TopicRecordExample" resultMap="BaseResultMap">
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.TopicRecordExample" resultMap="BaseResultMap">
|
|
|
|
select
|
|
|
|
select
|
|
|
@ -102,11 +103,11 @@
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.TopicRecord">
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.TopicRecord">
|
|
|
|
insert into topic_record (id, topic_id, flow_id,
|
|
|
|
insert into topic_record (id, topic_id, flow_id,
|
|
|
|
user_answer, answer, topic_content
|
|
|
|
topic_content, choices, user_answer,
|
|
|
|
)
|
|
|
|
answer)
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{topicId,jdbcType=VARCHAR}, #{flowId,jdbcType=VARCHAR},
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{topicId,jdbcType=VARCHAR}, #{flowId,jdbcType=VARCHAR},
|
|
|
|
#{userAnswer,jdbcType=VARCHAR}, #{answer,jdbcType=VARCHAR}, #{topicContent,jdbcType=VARCHAR}
|
|
|
|
#{topicContent,jdbcType=VARCHAR}, #{choices,jdbcType=VARCHAR}, #{userAnswer,jdbcType=VARCHAR},
|
|
|
|
)
|
|
|
|
#{answer,jdbcType=VARCHAR})
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.TopicRecord">
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.TopicRecord">
|
|
|
|
insert into topic_record
|
|
|
|
insert into topic_record
|
|
|
@ -120,15 +121,18 @@
|
|
|
|
<if test="flowId != null">
|
|
|
|
<if test="flowId != null">
|
|
|
|
flow_id,
|
|
|
|
flow_id,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="topicContent != null">
|
|
|
|
|
|
|
|
topic_content,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="choices != null">
|
|
|
|
|
|
|
|
choices,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="userAnswer != null">
|
|
|
|
<if test="userAnswer != null">
|
|
|
|
user_answer,
|
|
|
|
user_answer,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="answer != null">
|
|
|
|
<if test="answer != null">
|
|
|
|
answer,
|
|
|
|
answer,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="topicContent != null">
|
|
|
|
|
|
|
|
topic_content,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="id != null">
|
|
|
|
<if test="id != null">
|
|
|
@ -140,15 +144,18 @@
|
|
|
|
<if test="flowId != null">
|
|
|
|
<if test="flowId != null">
|
|
|
|
#{flowId,jdbcType=VARCHAR},
|
|
|
|
#{flowId,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="topicContent != null">
|
|
|
|
|
|
|
|
#{topicContent,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="choices != null">
|
|
|
|
|
|
|
|
#{choices,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="userAnswer != null">
|
|
|
|
<if test="userAnswer != null">
|
|
|
|
#{userAnswer,jdbcType=VARCHAR},
|
|
|
|
#{userAnswer,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="answer != null">
|
|
|
|
<if test="answer != null">
|
|
|
|
#{answer,jdbcType=VARCHAR},
|
|
|
|
#{answer,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="topicContent != null">
|
|
|
|
|
|
|
|
#{topicContent,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.TopicRecordExample" resultType="java.lang.Long">
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.TopicRecordExample" resultType="java.lang.Long">
|
|
|
@ -169,15 +176,18 @@
|
|
|
|
<if test="record.flowId != null">
|
|
|
|
<if test="record.flowId != null">
|
|
|
|
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
|
|
|
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.topicContent != null">
|
|
|
|
|
|
|
|
topic_content = #{record.topicContent,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.choices != null">
|
|
|
|
|
|
|
|
choices = #{record.choices,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="record.userAnswer != null">
|
|
|
|
<if test="record.userAnswer != null">
|
|
|
|
user_answer = #{record.userAnswer,jdbcType=VARCHAR},
|
|
|
|
user_answer = #{record.userAnswer,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="record.answer != null">
|
|
|
|
<if test="record.answer != null">
|
|
|
|
answer = #{record.answer,jdbcType=VARCHAR},
|
|
|
|
answer = #{record.answer,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="record.topicContent != null">
|
|
|
|
|
|
|
|
topic_content = #{record.topicContent,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@ -188,9 +198,10 @@
|
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
topic_id = #{record.topicId,jdbcType=VARCHAR},
|
|
|
|
topic_id = #{record.topicId,jdbcType=VARCHAR},
|
|
|
|
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
|
|
|
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
topic_content = #{record.topicContent,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
choices = #{record.choices,jdbcType=VARCHAR},
|
|
|
|
user_answer = #{record.userAnswer,jdbcType=VARCHAR},
|
|
|
|
user_answer = #{record.userAnswer,jdbcType=VARCHAR},
|
|
|
|
answer = #{record.answer,jdbcType=VARCHAR},
|
|
|
|
answer = #{record.answer,jdbcType=VARCHAR}
|
|
|
|
topic_content = #{record.topicContent,jdbcType=VARCHAR}
|
|
|
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -204,15 +215,18 @@
|
|
|
|
<if test="flowId != null">
|
|
|
|
<if test="flowId != null">
|
|
|
|
flow_id = #{flowId,jdbcType=VARCHAR},
|
|
|
|
flow_id = #{flowId,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="topicContent != null">
|
|
|
|
|
|
|
|
topic_content = #{topicContent,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="choices != null">
|
|
|
|
|
|
|
|
choices = #{choices,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="userAnswer != null">
|
|
|
|
<if test="userAnswer != null">
|
|
|
|
user_answer = #{userAnswer,jdbcType=VARCHAR},
|
|
|
|
user_answer = #{userAnswer,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="answer != null">
|
|
|
|
<if test="answer != null">
|
|
|
|
answer = #{answer,jdbcType=VARCHAR},
|
|
|
|
answer = #{answer,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="topicContent != null">
|
|
|
|
|
|
|
|
topic_content = #{topicContent,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
@ -220,9 +234,10 @@
|
|
|
|
update topic_record
|
|
|
|
update topic_record
|
|
|
|
set topic_id = #{topicId,jdbcType=VARCHAR},
|
|
|
|
set topic_id = #{topicId,jdbcType=VARCHAR},
|
|
|
|
flow_id = #{flowId,jdbcType=VARCHAR},
|
|
|
|
flow_id = #{flowId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
topic_content = #{topicContent,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
choices = #{choices,jdbcType=VARCHAR},
|
|
|
|
user_answer = #{userAnswer,jdbcType=VARCHAR},
|
|
|
|
user_answer = #{userAnswer,jdbcType=VARCHAR},
|
|
|
|
answer = #{answer,jdbcType=VARCHAR},
|
|
|
|
answer = #{answer,jdbcType=VARCHAR}
|
|
|
|
topic_content = #{topicContent,jdbcType=VARCHAR}
|
|
|
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|