You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
770 lines
34 KiB
XML
770 lines
34 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.sztzjy.money_management.mapper.CaseRetirementPlanMapper">
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.money_management.entity.CaseRetirementPlan">
|
|
<id column="case_retirement_plan_id" jdbcType="VARCHAR" property="caseRetirementPlanId" />
|
|
<result column="caseid" jdbcType="VARCHAR" property="caseid" />
|
|
<result column="age" jdbcType="INTEGER" property="age" />
|
|
<result column="before_inflation_rate" jdbcType="DECIMAL" property="beforeInflationRate" />
|
|
<result column="after_inflation_rate" jdbcType="DECIMAL" property="afterInflationRate" />
|
|
<result column="retirement_rate" jdbcType="DECIMAL" property="retirementRate" />
|
|
<result column="socia_security_rate" jdbcType="DECIMAL" property="sociaSecurityRate" />
|
|
<result column="rent_rate" jdbcType="DECIMAL" property="rentRate" />
|
|
<result column="other_rate" jdbcType="DECIMAL" property="otherRate" />
|
|
<result column="retirement_age" jdbcType="INTEGER" property="retirementAge" />
|
|
<result column="retirement_years" jdbcType="INTEGER" property="retirementYears" />
|
|
<result column="living_standard_now" jdbcType="VARCHAR" property="livingStandardNow" />
|
|
<result column="satisfaction" jdbcType="INTEGER" property="satisfaction" />
|
|
<result column="satisfaction_living_standard" jdbcType="VARCHAR" property="satisfactionLivingStandard" />
|
|
<result column="convert_proportion" jdbcType="DECIMAL" property="convertProportion" />
|
|
<result column="lineage_fee" jdbcType="DECIMAL" property="lineageFee" />
|
|
<result column="retirement_living_standard" jdbcType="VARCHAR" property="retirementLivingStandard" />
|
|
<result column="after_living_standard" jdbcType="VARCHAR" property="afterLivingStandard" />
|
|
<result column="social_insurance" jdbcType="DECIMAL" property="socialInsurance" />
|
|
<result column="commercial_insurance" jdbcType="DECIMAL" property="commercialInsurance" />
|
|
<result column="rent_income" jdbcType="DECIMAL" property="rentIncome" />
|
|
<result column="other_income" jdbcType="DECIMAL" property="otherIncome" />
|
|
<result column="total_income" jdbcType="DECIMAL" property="totalIncome" />
|
|
<result column="total_amount" jdbcType="DECIMAL" property="totalAmount" />
|
|
<result column="return_on_investment_rate" jdbcType="DECIMAL" property="returnOnInvestmentRate" />
|
|
<result column="disposable_input" jdbcType="DECIMAL" property="disposableInput" />
|
|
<result column="monthly_investment" jdbcType="DECIMAL" property="monthlyInvestment" />
|
|
<result column="regular_year" jdbcType="INTEGER" property="regularYear" />
|
|
<result column="target_amount" jdbcType="DECIMAL" property="targetAmount" />
|
|
<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="case_teacher_score" jdbcType="DECIMAL" property="caseTeacherScore" />
|
|
</resultMap>
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.money_management.entity.CaseRetirementPlan">
|
|
<result column="analysis" jdbcType="LONGVARCHAR" property="analysis" />
|
|
</resultMap>
|
|
<sql id="Example_Where_Clause">
|
|
<where>
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
<if test="criteria.valid">
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
<choose>
|
|
<when test="criterion.noValue">
|
|
and ${criterion.condition}
|
|
</when>
|
|
<when test="criterion.singleValue">
|
|
and ${criterion.condition} #{criterion.value}
|
|
</when>
|
|
<when test="criterion.betweenValue">
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
</when>
|
|
<when test="criterion.listValue">
|
|
and ${criterion.condition}
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
#{listItem}
|
|
</foreach>
|
|
</when>
|
|
</choose>
|
|
</foreach>
|
|
</trim>
|
|
</if>
|
|
</foreach>
|
|
</where>
|
|
</sql>
|
|
<sql id="Update_By_Example_Where_Clause">
|
|
<where>
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
<if test="criteria.valid">
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
<choose>
|
|
<when test="criterion.noValue">
|
|
and ${criterion.condition}
|
|
</when>
|
|
<when test="criterion.singleValue">
|
|
and ${criterion.condition} #{criterion.value}
|
|
</when>
|
|
<when test="criterion.betweenValue">
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
</when>
|
|
<when test="criterion.listValue">
|
|
and ${criterion.condition}
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
#{listItem}
|
|
</foreach>
|
|
</when>
|
|
</choose>
|
|
</foreach>
|
|
</trim>
|
|
</if>
|
|
</foreach>
|
|
</where>
|
|
</sql>
|
|
<sql id="Base_Column_List">
|
|
case_retirement_plan_id, caseid, age, before_inflation_rate, after_inflation_rate,
|
|
retirement_rate, socia_security_rate, rent_rate, other_rate, retirement_age, retirement_years,
|
|
living_standard_now, satisfaction, satisfaction_living_standard, convert_proportion,
|
|
lineage_fee, retirement_living_standard, after_living_standard, social_insurance,
|
|
commercial_insurance, rent_income, other_income, total_income, total_amount, return_on_investment_rate,
|
|
disposable_input, monthly_investment, regular_year, target_amount, user_id, is_answer,
|
|
analysis_teacher_score, case_teacher_score
|
|
</sql>
|
|
<sql id="Blob_Column_List">
|
|
analysis
|
|
</sql>
|
|
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.money_management.entity.CaseRetirementPlanExample" resultMap="ResultMapWithBLOBs">
|
|
select
|
|
<if test="distinct">
|
|
distinct
|
|
</if>
|
|
<include refid="Base_Column_List" />
|
|
,
|
|
<include refid="Blob_Column_List" />
|
|
from case_retirement_plan
|
|
<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.money_management.entity.CaseRetirementPlanExample" resultMap="BaseResultMap">
|
|
select
|
|
<if test="distinct">
|
|
distinct
|
|
</if>
|
|
<include refid="Base_Column_List" />
|
|
from case_retirement_plan
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
<if test="orderByClause != null">
|
|
order by ${orderByClause}
|
|
</if>
|
|
</select>
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
,
|
|
<include refid="Blob_Column_List" />
|
|
from case_retirement_plan
|
|
where case_retirement_plan_id = #{caseRetirementPlanId,jdbcType=VARCHAR}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
delete from case_retirement_plan
|
|
where case_retirement_plan_id = #{caseRetirementPlanId,jdbcType=VARCHAR}
|
|
</delete>
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.money_management.entity.CaseRetirementPlanExample">
|
|
delete from case_retirement_plan
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.sztzjy.money_management.entity.CaseRetirementPlan">
|
|
insert into case_retirement_plan (case_retirement_plan_id, caseid, age,
|
|
before_inflation_rate, after_inflation_rate,
|
|
retirement_rate, socia_security_rate, rent_rate,
|
|
other_rate, retirement_age, retirement_years,
|
|
living_standard_now, satisfaction, satisfaction_living_standard,
|
|
convert_proportion, lineage_fee, retirement_living_standard,
|
|
after_living_standard, social_insurance, commercial_insurance,
|
|
rent_income, other_income, total_income,
|
|
total_amount, return_on_investment_rate, disposable_input,
|
|
monthly_investment, regular_year, target_amount,
|
|
user_id, is_answer, analysis_teacher_score,
|
|
case_teacher_score, analysis)
|
|
values (#{caseRetirementPlanId,jdbcType=VARCHAR}, #{caseid,jdbcType=VARCHAR}, #{age,jdbcType=INTEGER},
|
|
#{beforeInflationRate,jdbcType=DECIMAL}, #{afterInflationRate,jdbcType=DECIMAL},
|
|
#{retirementRate,jdbcType=DECIMAL}, #{sociaSecurityRate,jdbcType=DECIMAL}, #{rentRate,jdbcType=DECIMAL},
|
|
#{otherRate,jdbcType=DECIMAL}, #{retirementAge,jdbcType=INTEGER}, #{retirementYears,jdbcType=INTEGER},
|
|
#{livingStandardNow,jdbcType=VARCHAR}, #{satisfaction,jdbcType=INTEGER}, #{satisfactionLivingStandard,jdbcType=VARCHAR},
|
|
#{convertProportion,jdbcType=DECIMAL}, #{lineageFee,jdbcType=DECIMAL}, #{retirementLivingStandard,jdbcType=VARCHAR},
|
|
#{afterLivingStandard,jdbcType=VARCHAR}, #{socialInsurance,jdbcType=DECIMAL}, #{commercialInsurance,jdbcType=DECIMAL},
|
|
#{rentIncome,jdbcType=DECIMAL}, #{otherIncome,jdbcType=DECIMAL}, #{totalIncome,jdbcType=DECIMAL},
|
|
#{totalAmount,jdbcType=DECIMAL}, #{returnOnInvestmentRate,jdbcType=DECIMAL}, #{disposableInput,jdbcType=DECIMAL},
|
|
#{monthlyInvestment,jdbcType=DECIMAL}, #{regularYear,jdbcType=INTEGER}, #{targetAmount,jdbcType=DECIMAL},
|
|
#{userId,jdbcType=VARCHAR}, #{isAnswer,jdbcType=VARCHAR}, #{analysisTeacherScore,jdbcType=DECIMAL},
|
|
#{caseTeacherScore,jdbcType=DECIMAL}, #{analysis,jdbcType=LONGVARCHAR})
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.sztzjy.money_management.entity.CaseRetirementPlan">
|
|
insert into case_retirement_plan
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="caseRetirementPlanId != null">
|
|
case_retirement_plan_id,
|
|
</if>
|
|
<if test="caseid != null">
|
|
caseid,
|
|
</if>
|
|
<if test="age != null">
|
|
age,
|
|
</if>
|
|
<if test="beforeInflationRate != null">
|
|
before_inflation_rate,
|
|
</if>
|
|
<if test="afterInflationRate != null">
|
|
after_inflation_rate,
|
|
</if>
|
|
<if test="retirementRate != null">
|
|
retirement_rate,
|
|
</if>
|
|
<if test="sociaSecurityRate != null">
|
|
socia_security_rate,
|
|
</if>
|
|
<if test="rentRate != null">
|
|
rent_rate,
|
|
</if>
|
|
<if test="otherRate != null">
|
|
other_rate,
|
|
</if>
|
|
<if test="retirementAge != null">
|
|
retirement_age,
|
|
</if>
|
|
<if test="retirementYears != null">
|
|
retirement_years,
|
|
</if>
|
|
<if test="livingStandardNow != null">
|
|
living_standard_now,
|
|
</if>
|
|
<if test="satisfaction != null">
|
|
satisfaction,
|
|
</if>
|
|
<if test="satisfactionLivingStandard != null">
|
|
satisfaction_living_standard,
|
|
</if>
|
|
<if test="convertProportion != null">
|
|
convert_proportion,
|
|
</if>
|
|
<if test="lineageFee != null">
|
|
lineage_fee,
|
|
</if>
|
|
<if test="retirementLivingStandard != null">
|
|
retirement_living_standard,
|
|
</if>
|
|
<if test="afterLivingStandard != null">
|
|
after_living_standard,
|
|
</if>
|
|
<if test="socialInsurance != null">
|
|
social_insurance,
|
|
</if>
|
|
<if test="commercialInsurance != null">
|
|
commercial_insurance,
|
|
</if>
|
|
<if test="rentIncome != null">
|
|
rent_income,
|
|
</if>
|
|
<if test="otherIncome != null">
|
|
other_income,
|
|
</if>
|
|
<if test="totalIncome != null">
|
|
total_income,
|
|
</if>
|
|
<if test="totalAmount != null">
|
|
total_amount,
|
|
</if>
|
|
<if test="returnOnInvestmentRate != null">
|
|
return_on_investment_rate,
|
|
</if>
|
|
<if test="disposableInput != null">
|
|
disposable_input,
|
|
</if>
|
|
<if test="monthlyInvestment != null">
|
|
monthly_investment,
|
|
</if>
|
|
<if test="regularYear != null">
|
|
regular_year,
|
|
</if>
|
|
<if test="targetAmount != null">
|
|
target_amount,
|
|
</if>
|
|
<if test="userId != null">
|
|
user_id,
|
|
</if>
|
|
<if test="isAnswer != null">
|
|
is_answer,
|
|
</if>
|
|
<if test="analysisTeacherScore != null">
|
|
analysis_teacher_score,
|
|
</if>
|
|
<if test="caseTeacherScore != null">
|
|
case_teacher_score,
|
|
</if>
|
|
<if test="analysis != null">
|
|
analysis,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="caseRetirementPlanId != null">
|
|
#{caseRetirementPlanId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="caseid != null">
|
|
#{caseid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="age != null">
|
|
#{age,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="beforeInflationRate != null">
|
|
#{beforeInflationRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="afterInflationRate != null">
|
|
#{afterInflationRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="retirementRate != null">
|
|
#{retirementRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="sociaSecurityRate != null">
|
|
#{sociaSecurityRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="rentRate != null">
|
|
#{rentRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="otherRate != null">
|
|
#{otherRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="retirementAge != null">
|
|
#{retirementAge,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="retirementYears != null">
|
|
#{retirementYears,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="livingStandardNow != null">
|
|
#{livingStandardNow,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="satisfaction != null">
|
|
#{satisfaction,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="satisfactionLivingStandard != null">
|
|
#{satisfactionLivingStandard,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="convertProportion != null">
|
|
#{convertProportion,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="lineageFee != null">
|
|
#{lineageFee,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="retirementLivingStandard != null">
|
|
#{retirementLivingStandard,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="afterLivingStandard != null">
|
|
#{afterLivingStandard,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="socialInsurance != null">
|
|
#{socialInsurance,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="commercialInsurance != null">
|
|
#{commercialInsurance,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="rentIncome != null">
|
|
#{rentIncome,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="otherIncome != null">
|
|
#{otherIncome,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="totalIncome != null">
|
|
#{totalIncome,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="totalAmount != null">
|
|
#{totalAmount,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="returnOnInvestmentRate != null">
|
|
#{returnOnInvestmentRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="disposableInput != null">
|
|
#{disposableInput,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="monthlyInvestment != null">
|
|
#{monthlyInvestment,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="regularYear != null">
|
|
#{regularYear,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="targetAmount != null">
|
|
#{targetAmount,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="userId != null">
|
|
#{userId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="isAnswer != null">
|
|
#{isAnswer,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="analysisTeacherScore != null">
|
|
#{analysisTeacherScore,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="caseTeacherScore != null">
|
|
#{caseTeacherScore,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="analysis != null">
|
|
#{analysis,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<select id="countByExample" parameterType="com.sztzjy.money_management.entity.CaseRetirementPlanExample" resultType="java.lang.Long">
|
|
select count(*) from case_retirement_plan
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
</select>
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
update case_retirement_plan
|
|
<set>
|
|
<if test="record.caseRetirementPlanId != null">
|
|
case_retirement_plan_id = #{record.caseRetirementPlanId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.caseid != null">
|
|
caseid = #{record.caseid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.age != null">
|
|
age = #{record.age,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.beforeInflationRate != null">
|
|
before_inflation_rate = #{record.beforeInflationRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.afterInflationRate != null">
|
|
after_inflation_rate = #{record.afterInflationRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.retirementRate != null">
|
|
retirement_rate = #{record.retirementRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.sociaSecurityRate != null">
|
|
socia_security_rate = #{record.sociaSecurityRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.rentRate != null">
|
|
rent_rate = #{record.rentRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.otherRate != null">
|
|
other_rate = #{record.otherRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.retirementAge != null">
|
|
retirement_age = #{record.retirementAge,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.retirementYears != null">
|
|
retirement_years = #{record.retirementYears,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.livingStandardNow != null">
|
|
living_standard_now = #{record.livingStandardNow,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.satisfaction != null">
|
|
satisfaction = #{record.satisfaction,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.satisfactionLivingStandard != null">
|
|
satisfaction_living_standard = #{record.satisfactionLivingStandard,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.convertProportion != null">
|
|
convert_proportion = #{record.convertProportion,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.lineageFee != null">
|
|
lineage_fee = #{record.lineageFee,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.retirementLivingStandard != null">
|
|
retirement_living_standard = #{record.retirementLivingStandard,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.afterLivingStandard != null">
|
|
after_living_standard = #{record.afterLivingStandard,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.socialInsurance != null">
|
|
social_insurance = #{record.socialInsurance,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.commercialInsurance != null">
|
|
commercial_insurance = #{record.commercialInsurance,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.rentIncome != null">
|
|
rent_income = #{record.rentIncome,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.otherIncome != null">
|
|
other_income = #{record.otherIncome,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.totalIncome != null">
|
|
total_income = #{record.totalIncome,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.totalAmount != null">
|
|
total_amount = #{record.totalAmount,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.returnOnInvestmentRate != null">
|
|
return_on_investment_rate = #{record.returnOnInvestmentRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.disposableInput != null">
|
|
disposable_input = #{record.disposableInput,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.monthlyInvestment != null">
|
|
monthly_investment = #{record.monthlyInvestment,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.regularYear != null">
|
|
regular_year = #{record.regularYear,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.targetAmount != null">
|
|
target_amount = #{record.targetAmount,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.userId != null">
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.isAnswer != null">
|
|
is_answer = #{record.isAnswer,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.analysisTeacherScore != null">
|
|
analysis_teacher_score = #{record.analysisTeacherScore,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.caseTeacherScore != null">
|
|
case_teacher_score = #{record.caseTeacherScore,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="record.analysis != null">
|
|
analysis = #{record.analysis,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</set>
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByExampleWithBLOBs" parameterType="map">
|
|
update case_retirement_plan
|
|
set case_retirement_plan_id = #{record.caseRetirementPlanId,jdbcType=VARCHAR},
|
|
caseid = #{record.caseid,jdbcType=VARCHAR},
|
|
age = #{record.age,jdbcType=INTEGER},
|
|
before_inflation_rate = #{record.beforeInflationRate,jdbcType=DECIMAL},
|
|
after_inflation_rate = #{record.afterInflationRate,jdbcType=DECIMAL},
|
|
retirement_rate = #{record.retirementRate,jdbcType=DECIMAL},
|
|
socia_security_rate = #{record.sociaSecurityRate,jdbcType=DECIMAL},
|
|
rent_rate = #{record.rentRate,jdbcType=DECIMAL},
|
|
other_rate = #{record.otherRate,jdbcType=DECIMAL},
|
|
retirement_age = #{record.retirementAge,jdbcType=INTEGER},
|
|
retirement_years = #{record.retirementYears,jdbcType=INTEGER},
|
|
living_standard_now = #{record.livingStandardNow,jdbcType=VARCHAR},
|
|
satisfaction = #{record.satisfaction,jdbcType=INTEGER},
|
|
satisfaction_living_standard = #{record.satisfactionLivingStandard,jdbcType=VARCHAR},
|
|
convert_proportion = #{record.convertProportion,jdbcType=DECIMAL},
|
|
lineage_fee = #{record.lineageFee,jdbcType=DECIMAL},
|
|
retirement_living_standard = #{record.retirementLivingStandard,jdbcType=VARCHAR},
|
|
after_living_standard = #{record.afterLivingStandard,jdbcType=VARCHAR},
|
|
social_insurance = #{record.socialInsurance,jdbcType=DECIMAL},
|
|
commercial_insurance = #{record.commercialInsurance,jdbcType=DECIMAL},
|
|
rent_income = #{record.rentIncome,jdbcType=DECIMAL},
|
|
other_income = #{record.otherIncome,jdbcType=DECIMAL},
|
|
total_income = #{record.totalIncome,jdbcType=DECIMAL},
|
|
total_amount = #{record.totalAmount,jdbcType=DECIMAL},
|
|
return_on_investment_rate = #{record.returnOnInvestmentRate,jdbcType=DECIMAL},
|
|
disposable_input = #{record.disposableInput,jdbcType=DECIMAL},
|
|
monthly_investment = #{record.monthlyInvestment,jdbcType=DECIMAL},
|
|
regular_year = #{record.regularYear,jdbcType=INTEGER},
|
|
target_amount = #{record.targetAmount,jdbcType=DECIMAL},
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
is_answer = #{record.isAnswer,jdbcType=VARCHAR},
|
|
analysis_teacher_score = #{record.analysisTeacherScore,jdbcType=DECIMAL},
|
|
case_teacher_score = #{record.caseTeacherScore,jdbcType=DECIMAL},
|
|
analysis = #{record.analysis,jdbcType=LONGVARCHAR}
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByExample" parameterType="map">
|
|
update case_retirement_plan
|
|
set case_retirement_plan_id = #{record.caseRetirementPlanId,jdbcType=VARCHAR},
|
|
caseid = #{record.caseid,jdbcType=VARCHAR},
|
|
age = #{record.age,jdbcType=INTEGER},
|
|
before_inflation_rate = #{record.beforeInflationRate,jdbcType=DECIMAL},
|
|
after_inflation_rate = #{record.afterInflationRate,jdbcType=DECIMAL},
|
|
retirement_rate = #{record.retirementRate,jdbcType=DECIMAL},
|
|
socia_security_rate = #{record.sociaSecurityRate,jdbcType=DECIMAL},
|
|
rent_rate = #{record.rentRate,jdbcType=DECIMAL},
|
|
other_rate = #{record.otherRate,jdbcType=DECIMAL},
|
|
retirement_age = #{record.retirementAge,jdbcType=INTEGER},
|
|
retirement_years = #{record.retirementYears,jdbcType=INTEGER},
|
|
living_standard_now = #{record.livingStandardNow,jdbcType=VARCHAR},
|
|
satisfaction = #{record.satisfaction,jdbcType=INTEGER},
|
|
satisfaction_living_standard = #{record.satisfactionLivingStandard,jdbcType=VARCHAR},
|
|
convert_proportion = #{record.convertProportion,jdbcType=DECIMAL},
|
|
lineage_fee = #{record.lineageFee,jdbcType=DECIMAL},
|
|
retirement_living_standard = #{record.retirementLivingStandard,jdbcType=VARCHAR},
|
|
after_living_standard = #{record.afterLivingStandard,jdbcType=VARCHAR},
|
|
social_insurance = #{record.socialInsurance,jdbcType=DECIMAL},
|
|
commercial_insurance = #{record.commercialInsurance,jdbcType=DECIMAL},
|
|
rent_income = #{record.rentIncome,jdbcType=DECIMAL},
|
|
other_income = #{record.otherIncome,jdbcType=DECIMAL},
|
|
total_income = #{record.totalIncome,jdbcType=DECIMAL},
|
|
total_amount = #{record.totalAmount,jdbcType=DECIMAL},
|
|
return_on_investment_rate = #{record.returnOnInvestmentRate,jdbcType=DECIMAL},
|
|
disposable_input = #{record.disposableInput,jdbcType=DECIMAL},
|
|
monthly_investment = #{record.monthlyInvestment,jdbcType=DECIMAL},
|
|
regular_year = #{record.regularYear,jdbcType=INTEGER},
|
|
target_amount = #{record.targetAmount,jdbcType=DECIMAL},
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
is_answer = #{record.isAnswer,jdbcType=VARCHAR},
|
|
analysis_teacher_score = #{record.analysisTeacherScore,jdbcType=DECIMAL},
|
|
case_teacher_score = #{record.caseTeacherScore,jdbcType=DECIMAL}
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.money_management.entity.CaseRetirementPlan">
|
|
update case_retirement_plan
|
|
<set>
|
|
<if test="caseid != null">
|
|
caseid = #{caseid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="age != null">
|
|
age = #{age,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="beforeInflationRate != null">
|
|
before_inflation_rate = #{beforeInflationRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="afterInflationRate != null">
|
|
after_inflation_rate = #{afterInflationRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="retirementRate != null">
|
|
retirement_rate = #{retirementRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="sociaSecurityRate != null">
|
|
socia_security_rate = #{sociaSecurityRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="rentRate != null">
|
|
rent_rate = #{rentRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="otherRate != null">
|
|
other_rate = #{otherRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="retirementAge != null">
|
|
retirement_age = #{retirementAge,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="retirementYears != null">
|
|
retirement_years = #{retirementYears,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="livingStandardNow != null">
|
|
living_standard_now = #{livingStandardNow,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="satisfaction != null">
|
|
satisfaction = #{satisfaction,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="satisfactionLivingStandard != null">
|
|
satisfaction_living_standard = #{satisfactionLivingStandard,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="convertProportion != null">
|
|
convert_proportion = #{convertProportion,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="lineageFee != null">
|
|
lineage_fee = #{lineageFee,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="retirementLivingStandard != null">
|
|
retirement_living_standard = #{retirementLivingStandard,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="afterLivingStandard != null">
|
|
after_living_standard = #{afterLivingStandard,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="socialInsurance != null">
|
|
social_insurance = #{socialInsurance,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="commercialInsurance != null">
|
|
commercial_insurance = #{commercialInsurance,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="rentIncome != null">
|
|
rent_income = #{rentIncome,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="otherIncome != null">
|
|
other_income = #{otherIncome,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="totalIncome != null">
|
|
total_income = #{totalIncome,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="totalAmount != null">
|
|
total_amount = #{totalAmount,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="returnOnInvestmentRate != null">
|
|
return_on_investment_rate = #{returnOnInvestmentRate,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="disposableInput != null">
|
|
disposable_input = #{disposableInput,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="monthlyInvestment != null">
|
|
monthly_investment = #{monthlyInvestment,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="regularYear != null">
|
|
regular_year = #{regularYear,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="targetAmount != null">
|
|
target_amount = #{targetAmount,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="userId != null">
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="isAnswer != null">
|
|
is_answer = #{isAnswer,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="analysisTeacherScore != null">
|
|
analysis_teacher_score = #{analysisTeacherScore,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="caseTeacherScore != null">
|
|
case_teacher_score = #{caseTeacherScore,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="analysis != null">
|
|
analysis = #{analysis,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</set>
|
|
where case_retirement_plan_id = #{caseRetirementPlanId,jdbcType=VARCHAR}
|
|
</update>
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.money_management.entity.CaseRetirementPlan">
|
|
update case_retirement_plan
|
|
set caseid = #{caseid,jdbcType=VARCHAR},
|
|
age = #{age,jdbcType=INTEGER},
|
|
before_inflation_rate = #{beforeInflationRate,jdbcType=DECIMAL},
|
|
after_inflation_rate = #{afterInflationRate,jdbcType=DECIMAL},
|
|
retirement_rate = #{retirementRate,jdbcType=DECIMAL},
|
|
socia_security_rate = #{sociaSecurityRate,jdbcType=DECIMAL},
|
|
rent_rate = #{rentRate,jdbcType=DECIMAL},
|
|
other_rate = #{otherRate,jdbcType=DECIMAL},
|
|
retirement_age = #{retirementAge,jdbcType=INTEGER},
|
|
retirement_years = #{retirementYears,jdbcType=INTEGER},
|
|
living_standard_now = #{livingStandardNow,jdbcType=VARCHAR},
|
|
satisfaction = #{satisfaction,jdbcType=INTEGER},
|
|
satisfaction_living_standard = #{satisfactionLivingStandard,jdbcType=VARCHAR},
|
|
convert_proportion = #{convertProportion,jdbcType=DECIMAL},
|
|
lineage_fee = #{lineageFee,jdbcType=DECIMAL},
|
|
retirement_living_standard = #{retirementLivingStandard,jdbcType=VARCHAR},
|
|
after_living_standard = #{afterLivingStandard,jdbcType=VARCHAR},
|
|
social_insurance = #{socialInsurance,jdbcType=DECIMAL},
|
|
commercial_insurance = #{commercialInsurance,jdbcType=DECIMAL},
|
|
rent_income = #{rentIncome,jdbcType=DECIMAL},
|
|
other_income = #{otherIncome,jdbcType=DECIMAL},
|
|
total_income = #{totalIncome,jdbcType=DECIMAL},
|
|
total_amount = #{totalAmount,jdbcType=DECIMAL},
|
|
return_on_investment_rate = #{returnOnInvestmentRate,jdbcType=DECIMAL},
|
|
disposable_input = #{disposableInput,jdbcType=DECIMAL},
|
|
monthly_investment = #{monthlyInvestment,jdbcType=DECIMAL},
|
|
regular_year = #{regularYear,jdbcType=INTEGER},
|
|
target_amount = #{targetAmount,jdbcType=DECIMAL},
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
is_answer = #{isAnswer,jdbcType=VARCHAR},
|
|
analysis_teacher_score = #{analysisTeacherScore,jdbcType=DECIMAL},
|
|
case_teacher_score = #{caseTeacherScore,jdbcType=DECIMAL},
|
|
analysis = #{analysis,jdbcType=LONGVARCHAR}
|
|
where case_retirement_plan_id = #{caseRetirementPlanId,jdbcType=VARCHAR}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.money_management.entity.CaseRetirementPlan">
|
|
update case_retirement_plan
|
|
set caseid = #{caseid,jdbcType=VARCHAR},
|
|
age = #{age,jdbcType=INTEGER},
|
|
before_inflation_rate = #{beforeInflationRate,jdbcType=DECIMAL},
|
|
after_inflation_rate = #{afterInflationRate,jdbcType=DECIMAL},
|
|
retirement_rate = #{retirementRate,jdbcType=DECIMAL},
|
|
socia_security_rate = #{sociaSecurityRate,jdbcType=DECIMAL},
|
|
rent_rate = #{rentRate,jdbcType=DECIMAL},
|
|
other_rate = #{otherRate,jdbcType=DECIMAL},
|
|
retirement_age = #{retirementAge,jdbcType=INTEGER},
|
|
retirement_years = #{retirementYears,jdbcType=INTEGER},
|
|
living_standard_now = #{livingStandardNow,jdbcType=VARCHAR},
|
|
satisfaction = #{satisfaction,jdbcType=INTEGER},
|
|
satisfaction_living_standard = #{satisfactionLivingStandard,jdbcType=VARCHAR},
|
|
convert_proportion = #{convertProportion,jdbcType=DECIMAL},
|
|
lineage_fee = #{lineageFee,jdbcType=DECIMAL},
|
|
retirement_living_standard = #{retirementLivingStandard,jdbcType=VARCHAR},
|
|
after_living_standard = #{afterLivingStandard,jdbcType=VARCHAR},
|
|
social_insurance = #{socialInsurance,jdbcType=DECIMAL},
|
|
commercial_insurance = #{commercialInsurance,jdbcType=DECIMAL},
|
|
rent_income = #{rentIncome,jdbcType=DECIMAL},
|
|
other_income = #{otherIncome,jdbcType=DECIMAL},
|
|
total_income = #{totalIncome,jdbcType=DECIMAL},
|
|
total_amount = #{totalAmount,jdbcType=DECIMAL},
|
|
return_on_investment_rate = #{returnOnInvestmentRate,jdbcType=DECIMAL},
|
|
disposable_input = #{disposableInput,jdbcType=DECIMAL},
|
|
monthly_investment = #{monthlyInvestment,jdbcType=DECIMAL},
|
|
regular_year = #{regularYear,jdbcType=INTEGER},
|
|
target_amount = #{targetAmount,jdbcType=DECIMAL},
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
is_answer = #{isAnswer,jdbcType=VARCHAR},
|
|
analysis_teacher_score = #{analysisTeacherScore,jdbcType=DECIMAL},
|
|
case_teacher_score = #{caseTeacherScore,jdbcType=DECIMAL}
|
|
where case_retirement_plan_id = #{caseRetirementPlanId,jdbcType=VARCHAR}
|
|
</update>
|
|
</mapper> |