|
|
@ -2,7 +2,7 @@
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.sztzjy.fund_investment.mapper.TopicRecordMapper">
|
|
|
|
<mapper namespace="com.sztzjy.fund_investment.mapper.TopicRecordMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.TopicRecord">
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.TopicRecord">
|
|
|
|
<id column="id" jdbcType="INTEGER" 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="module" jdbcType="VARCHAR" property="module" />
|
|
|
|
<result column="module" jdbcType="VARCHAR" property="module" />
|
|
|
@ -92,15 +92,15 @@
|
|
|
|
order by ${orderByClause}
|
|
|
|
order by ${orderByClause}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
select
|
|
|
|
select
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
from topic_record
|
|
|
|
from topic_record
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
|
delete from topic_record
|
|
|
|
delete from topic_record
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.fund_investment.entity.TopicRecordExample">
|
|
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.fund_investment.entity.TopicRecordExample">
|
|
|
|
delete from topic_record
|
|
|
|
delete from topic_record
|
|
|
@ -114,7 +114,7 @@
|
|
|
|
choicesA, choicesB, choicesC,
|
|
|
|
choicesA, choicesB, choicesC,
|
|
|
|
choicesD, choicesE, user_answer,
|
|
|
|
choicesD, choicesE, user_answer,
|
|
|
|
answer)
|
|
|
|
answer)
|
|
|
|
values (#{id,jdbcType=INTEGER}, #{topicId,jdbcType=VARCHAR}, #{flowId,jdbcType=VARCHAR},
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{topicId,jdbcType=VARCHAR}, #{flowId,jdbcType=VARCHAR},
|
|
|
|
#{module,jdbcType=VARCHAR}, #{topicContent,jdbcType=VARCHAR}, #{topicType,jdbcType=VARCHAR},
|
|
|
|
#{module,jdbcType=VARCHAR}, #{topicContent,jdbcType=VARCHAR}, #{topicType,jdbcType=VARCHAR},
|
|
|
|
#{choicesa,jdbcType=VARCHAR}, #{choicesb,jdbcType=VARCHAR}, #{choicesc,jdbcType=VARCHAR},
|
|
|
|
#{choicesa,jdbcType=VARCHAR}, #{choicesb,jdbcType=VARCHAR}, #{choicesc,jdbcType=VARCHAR},
|
|
|
|
#{choicesd,jdbcType=VARCHAR}, #{choicese,jdbcType=VARCHAR}, #{userAnswer,jdbcType=VARCHAR},
|
|
|
|
#{choicesd,jdbcType=VARCHAR}, #{choicese,jdbcType=VARCHAR}, #{userAnswer,jdbcType=VARCHAR},
|
|
|
@ -165,7 +165,7 @@
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="id != null">
|
|
|
|
<if test="id != null">
|
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
|
#{id,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="topicId != null">
|
|
|
|
<if test="topicId != null">
|
|
|
|
#{topicId,jdbcType=VARCHAR},
|
|
|
|
#{topicId,jdbcType=VARCHAR},
|
|
|
@ -215,7 +215,7 @@
|
|
|
|
update topic_record
|
|
|
|
update topic_record
|
|
|
|
<set>
|
|
|
|
<set>
|
|
|
|
<if test="record.id != null">
|
|
|
|
<if test="record.id != null">
|
|
|
|
id = #{record.id,jdbcType=INTEGER},
|
|
|
|
id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="record.topicId != null">
|
|
|
|
<if test="record.topicId != null">
|
|
|
|
topic_id = #{record.topicId,jdbcType=VARCHAR},
|
|
|
|
topic_id = #{record.topicId,jdbcType=VARCHAR},
|
|
|
@ -260,7 +260,7 @@
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
update topic_record
|
|
|
|
update topic_record
|
|
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
|
|
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},
|
|
|
|
module = #{record.module,jdbcType=VARCHAR},
|
|
|
|
module = #{record.module,jdbcType=VARCHAR},
|
|
|
@ -317,7 +317,7 @@
|
|
|
|
answer = #{answer,jdbcType=VARCHAR},
|
|
|
|
answer = #{answer,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.TopicRecord">
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.TopicRecord">
|
|
|
|
update topic_record
|
|
|
|
update topic_record
|
|
|
@ -333,6 +333,6 @@
|
|
|
|
choicesE = #{choicese,jdbcType=VARCHAR},
|
|
|
|
choicesE = #{choicese,jdbcType=VARCHAR},
|
|
|
|
user_answer = #{userAnswer,jdbcType=VARCHAR},
|
|
|
|
user_answer = #{userAnswer,jdbcType=VARCHAR},
|
|
|
|
answer = #{answer,jdbcType=VARCHAR}
|
|
|
|
answer = #{answer,jdbcType=VARCHAR}
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|