|
|
|
@ -11,6 +11,7 @@
|
|
|
|
|
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
|
|
|
|
<result column="is_answer" jdbcType="VARCHAR" property="isAnswer" />
|
|
|
|
|
<result column="analysis_teacher_score" jdbcType="DECIMAL" property="analysisTeacherScore" />
|
|
|
|
|
<result column="tzghfx_teacher_score" jdbcType="DECIMAL" property="tzghfxTeacherScore" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.money_management.entity.CaseInvestmentPlan">
|
|
|
|
|
<result column="analysis" jdbcType="LONGVARCHAR" property="analysis" />
|
|
|
|
@ -75,7 +76,7 @@
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
case_investment_plan_id, case_id, life_cycle_id, hold_rate, increase_rate, speculation_rate,
|
|
|
|
|
user_id, is_answer, analysis_teacher_score
|
|
|
|
|
user_id, is_answer, analysis_teacher_score, tzghfx_teacher_score
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Blob_Column_List">
|
|
|
|
|
analysis
|
|
|
|
@ -132,11 +133,11 @@
|
|
|
|
|
insert into case_investment_plan (case_investment_plan_id, case_id, life_cycle_id,
|
|
|
|
|
hold_rate, increase_rate, speculation_rate,
|
|
|
|
|
user_id, is_answer, analysis_teacher_score,
|
|
|
|
|
analysis)
|
|
|
|
|
tzghfx_teacher_score, analysis)
|
|
|
|
|
values (#{caseInvestmentPlanId,jdbcType=VARCHAR}, #{caseId,jdbcType=VARCHAR}, #{lifeCycleId,jdbcType=VARCHAR},
|
|
|
|
|
#{holdRate,jdbcType=DECIMAL}, #{increaseRate,jdbcType=DECIMAL}, #{speculationRate,jdbcType=DECIMAL},
|
|
|
|
|
#{userId,jdbcType=VARCHAR}, #{isAnswer,jdbcType=VARCHAR}, #{analysisTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
#{analysis,jdbcType=LONGVARCHAR})
|
|
|
|
|
#{tzghfxTeacherScore,jdbcType=DECIMAL}, #{analysis,jdbcType=LONGVARCHAR})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.money_management.entity.CaseInvestmentPlan">
|
|
|
|
|
insert into case_investment_plan
|
|
|
|
@ -168,6 +169,9 @@
|
|
|
|
|
<if test="analysisTeacherScore != null">
|
|
|
|
|
analysis_teacher_score,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="tzghfxTeacherScore != null">
|
|
|
|
|
tzghfx_teacher_score,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="analysis != null">
|
|
|
|
|
analysis,
|
|
|
|
|
</if>
|
|
|
|
@ -200,6 +204,9 @@
|
|
|
|
|
<if test="analysisTeacherScore != null">
|
|
|
|
|
#{analysisTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="tzghfxTeacherScore != null">
|
|
|
|
|
#{tzghfxTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="analysis != null">
|
|
|
|
|
#{analysis,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -241,6 +248,9 @@
|
|
|
|
|
<if test="record.analysisTeacherScore != null">
|
|
|
|
|
analysis_teacher_score = #{record.analysisTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.tzghfxTeacherScore != null">
|
|
|
|
|
tzghfx_teacher_score = #{record.tzghfxTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.analysis != null">
|
|
|
|
|
analysis = #{record.analysis,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -260,6 +270,7 @@
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
is_answer = #{record.isAnswer,jdbcType=VARCHAR},
|
|
|
|
|
analysis_teacher_score = #{record.analysisTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
tzghfx_teacher_score = #{record.tzghfxTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
analysis = #{record.analysis,jdbcType=LONGVARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
@ -275,7 +286,8 @@
|
|
|
|
|
speculation_rate = #{record.speculationRate,jdbcType=DECIMAL},
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
is_answer = #{record.isAnswer,jdbcType=VARCHAR},
|
|
|
|
|
analysis_teacher_score = #{record.analysisTeacherScore,jdbcType=DECIMAL}
|
|
|
|
|
analysis_teacher_score = #{record.analysisTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
tzghfx_teacher_score = #{record.tzghfxTeacherScore,jdbcType=DECIMAL}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
@ -307,6 +319,9 @@
|
|
|
|
|
<if test="analysisTeacherScore != null">
|
|
|
|
|
analysis_teacher_score = #{analysisTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="tzghfxTeacherScore != null">
|
|
|
|
|
tzghfx_teacher_score = #{tzghfxTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="analysis != null">
|
|
|
|
|
analysis = #{analysis,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -323,6 +338,7 @@
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
is_answer = #{isAnswer,jdbcType=VARCHAR},
|
|
|
|
|
analysis_teacher_score = #{analysisTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
tzghfx_teacher_score = #{tzghfxTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
analysis = #{analysis,jdbcType=LONGVARCHAR}
|
|
|
|
|
where case_investment_plan_id = #{caseInvestmentPlanId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
@ -335,7 +351,8 @@
|
|
|
|
|
speculation_rate = #{speculationRate,jdbcType=DECIMAL},
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
is_answer = #{isAnswer,jdbcType=VARCHAR},
|
|
|
|
|
analysis_teacher_score = #{analysisTeacherScore,jdbcType=DECIMAL}
|
|
|
|
|
analysis_teacher_score = #{analysisTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
tzghfx_teacher_score = #{tzghfxTeacherScore,jdbcType=DECIMAL}
|
|
|
|
|
where case_investment_plan_id = #{caseInvestmentPlanId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|