新增退出时机表,完成投资报告页面接口

master
xiaoCJ 1 year ago
parent 9c66437197
commit db76257732

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