重新生成生涯规划相关表,新增理财方案字段

master
xiaoCJ 5 months ago
parent 8233dd6497
commit ec1bf87974

@ -0,0 +1,879 @@
<?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.CaseConsumptionPlanMapper">
<resultMap id="BaseResultMap" type="com.sztzjy.money_management.entity.CaseConsumptionPlan">
<id column="case_consumption_plan_id" jdbcType="VARCHAR" property="caseConsumptionPlanId" />
<result column="case_id" jdbcType="VARCHAR" property="caseId" />
<result column="monthly_investment" jdbcType="DECIMAL" property="monthlyInvestment" />
<result column="available_assets" jdbcType="DECIMAL" property="availableAssets" />
<result column="shop_house_year" jdbcType="INTEGER" property="shopHouseYear" />
<result column="house_area" jdbcType="DECIMAL" property="houseArea" />
<result column="house_price" jdbcType="DECIMAL" property="housePrice" />
<result column="house_all_money" jdbcType="DECIMAL" property="houseAllMoney" />
<result column="house_down_payment_percent" jdbcType="DECIMAL" property="houseDownPaymentPercent" />
<result column="house_loan_year" jdbcType="INTEGER" property="houseLoanYear" />
<result column="house_loan_rate" jdbcType="DECIMAL" property="houseLoanRate" />
<result column="house_down_payment" jdbcType="DECIMAL" property="houseDownPayment" />
<result column="house_total_amount" jdbcType="DECIMAL" property="houseTotalAmount" />
<result column="disposable_input" jdbcType="DECIMAL" property="disposableInput" />
<result column="house_monthly_amount" jdbcType="DECIMAL" property="houseMonthlyAmount" />
<result column="shop_car_year" jdbcType="INTEGER" property="shopCarYear" />
<result column="car_type" jdbcType="VARCHAR" property="carType" />
<result column="car_price" jdbcType="DECIMAL" property="carPrice" />
<result column="car_down_payment_percent" jdbcType="DECIMAL" property="carDownPaymentPercent" />
<result column="car_loan_year" jdbcType="INTEGER" property="carLoanYear" />
<result column="car_loan_rate" jdbcType="DECIMAL" property="carLoanRate" />
<result column="purchase_tax" jdbcType="DECIMAL" property="purchaseTax" />
<result column="car_reg_fee" jdbcType="DECIMAL" property="carRegFee" />
<result column="displacement" jdbcType="INTEGER" property="displacement" />
<result column="vehicle_and_vessel_tax" jdbcType="DECIMAL" property="vehicleAndVesselTax" />
<result column="motor_vehicle_compulsory" jdbcType="DECIMAL" property="motorVehicleCompulsory" />
<result column="motor_vehicle_commercial" jdbcType="DECIMAL" property="motorVehicleCommercial" />
<result column="car_down_payment" jdbcType="DECIMAL" property="carDownPayment" />
<result column="car_total_amount" jdbcType="DECIMAL" property="carTotalAmount" />
<result column="car_monthly_amount" jdbcType="DECIMAL" property="carMonthlyAmount" />
<result column="return_on_investment" jdbcType="DECIMAL" property="returnOnInvestment" />
<result column="lump_sum" jdbcType="DECIMAL" property="lumpSum" />
<result column="month_regular_invest_amount" jdbcType="DECIMAL" property="monthRegularInvestAmount" />
<result column="regular_year" jdbcType="INTEGER" property="regularYear" />
<result column="financial_plan" jdbcType="VARCHAR" property="financialPlan" />
<result column="analysis_teacher_score" jdbcType="DECIMAL" property="analysisTeacherScore" />
<result column="case_teacher_score" jdbcType="DECIMAL" property="caseTeacherScore" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="is_answer" jdbcType="VARCHAR" property="isAnswer" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.money_management.entity.CaseConsumptionPlan">
<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_consumption_plan_id, case_id, monthly_investment, available_assets, shop_house_year,
house_area, house_price, house_all_money, house_down_payment_percent, house_loan_year,
house_loan_rate, house_down_payment, house_total_amount, disposable_input, house_monthly_amount,
shop_car_year, car_type, car_price, car_down_payment_percent, car_loan_year, car_loan_rate,
purchase_tax, car_reg_fee, displacement, vehicle_and_vessel_tax, motor_vehicle_compulsory,
motor_vehicle_commercial, car_down_payment, car_total_amount, car_monthly_amount,
return_on_investment, lump_sum, month_regular_invest_amount, regular_year, financial_plan,
analysis_teacher_score, case_teacher_score, user_id, is_answer
</sql>
<sql id="Blob_Column_List">
analysis
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.money_management.entity.CaseConsumptionPlanExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from case_consumption_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.CaseConsumptionPlanExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from case_consumption_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_consumption_plan
where case_consumption_plan_id = #{caseConsumptionPlanId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from case_consumption_plan
where case_consumption_plan_id = #{caseConsumptionPlanId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.sztzjy.money_management.entity.CaseConsumptionPlanExample">
delete from case_consumption_plan
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.sztzjy.money_management.entity.CaseConsumptionPlan">
insert into case_consumption_plan (case_consumption_plan_id, case_id, monthly_investment,
available_assets, shop_house_year, house_area,
house_price, house_all_money, house_down_payment_percent,
house_loan_year, house_loan_rate, house_down_payment,
house_total_amount, disposable_input, house_monthly_amount,
shop_car_year, car_type, car_price,
car_down_payment_percent, car_loan_year, car_loan_rate,
purchase_tax, car_reg_fee, displacement,
vehicle_and_vessel_tax, motor_vehicle_compulsory,
motor_vehicle_commercial, car_down_payment,
car_total_amount, car_monthly_amount, return_on_investment,
lump_sum, month_regular_invest_amount, regular_year,
financial_plan, analysis_teacher_score, case_teacher_score,
user_id, is_answer, analysis
)
values (#{caseConsumptionPlanId,jdbcType=VARCHAR}, #{caseId,jdbcType=VARCHAR}, #{monthlyInvestment,jdbcType=DECIMAL},
#{availableAssets,jdbcType=DECIMAL}, #{shopHouseYear,jdbcType=INTEGER}, #{houseArea,jdbcType=DECIMAL},
#{housePrice,jdbcType=DECIMAL}, #{houseAllMoney,jdbcType=DECIMAL}, #{houseDownPaymentPercent,jdbcType=DECIMAL},
#{houseLoanYear,jdbcType=INTEGER}, #{houseLoanRate,jdbcType=DECIMAL}, #{houseDownPayment,jdbcType=DECIMAL},
#{houseTotalAmount,jdbcType=DECIMAL}, #{disposableInput,jdbcType=DECIMAL}, #{houseMonthlyAmount,jdbcType=DECIMAL},
#{shopCarYear,jdbcType=INTEGER}, #{carType,jdbcType=VARCHAR}, #{carPrice,jdbcType=DECIMAL},
#{carDownPaymentPercent,jdbcType=DECIMAL}, #{carLoanYear,jdbcType=INTEGER}, #{carLoanRate,jdbcType=DECIMAL},
#{purchaseTax,jdbcType=DECIMAL}, #{carRegFee,jdbcType=DECIMAL}, #{displacement,jdbcType=INTEGER},
#{vehicleAndVesselTax,jdbcType=DECIMAL}, #{motorVehicleCompulsory,jdbcType=DECIMAL},
#{motorVehicleCommercial,jdbcType=DECIMAL}, #{carDownPayment,jdbcType=DECIMAL},
#{carTotalAmount,jdbcType=DECIMAL}, #{carMonthlyAmount,jdbcType=DECIMAL}, #{returnOnInvestment,jdbcType=DECIMAL},
#{lumpSum,jdbcType=DECIMAL}, #{monthRegularInvestAmount,jdbcType=DECIMAL}, #{regularYear,jdbcType=INTEGER},
#{financialPlan,jdbcType=VARCHAR}, #{analysisTeacherScore,jdbcType=DECIMAL}, #{caseTeacherScore,jdbcType=DECIMAL},
#{userId,jdbcType=VARCHAR}, #{isAnswer,jdbcType=VARCHAR}, #{analysis,jdbcType=LONGVARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.sztzjy.money_management.entity.CaseConsumptionPlan">
insert into case_consumption_plan
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="caseConsumptionPlanId != null">
case_consumption_plan_id,
</if>
<if test="caseId != null">
case_id,
</if>
<if test="monthlyInvestment != null">
monthly_investment,
</if>
<if test="availableAssets != null">
available_assets,
</if>
<if test="shopHouseYear != null">
shop_house_year,
</if>
<if test="houseArea != null">
house_area,
</if>
<if test="housePrice != null">
house_price,
</if>
<if test="houseAllMoney != null">
house_all_money,
</if>
<if test="houseDownPaymentPercent != null">
house_down_payment_percent,
</if>
<if test="houseLoanYear != null">
house_loan_year,
</if>
<if test="houseLoanRate != null">
house_loan_rate,
</if>
<if test="houseDownPayment != null">
house_down_payment,
</if>
<if test="houseTotalAmount != null">
house_total_amount,
</if>
<if test="disposableInput != null">
disposable_input,
</if>
<if test="houseMonthlyAmount != null">
house_monthly_amount,
</if>
<if test="shopCarYear != null">
shop_car_year,
</if>
<if test="carType != null">
car_type,
</if>
<if test="carPrice != null">
car_price,
</if>
<if test="carDownPaymentPercent != null">
car_down_payment_percent,
</if>
<if test="carLoanYear != null">
car_loan_year,
</if>
<if test="carLoanRate != null">
car_loan_rate,
</if>
<if test="purchaseTax != null">
purchase_tax,
</if>
<if test="carRegFee != null">
car_reg_fee,
</if>
<if test="displacement != null">
displacement,
</if>
<if test="vehicleAndVesselTax != null">
vehicle_and_vessel_tax,
</if>
<if test="motorVehicleCompulsory != null">
motor_vehicle_compulsory,
</if>
<if test="motorVehicleCommercial != null">
motor_vehicle_commercial,
</if>
<if test="carDownPayment != null">
car_down_payment,
</if>
<if test="carTotalAmount != null">
car_total_amount,
</if>
<if test="carMonthlyAmount != null">
car_monthly_amount,
</if>
<if test="returnOnInvestment != null">
return_on_investment,
</if>
<if test="lumpSum != null">
lump_sum,
</if>
<if test="monthRegularInvestAmount != null">
month_regular_invest_amount,
</if>
<if test="regularYear != null">
regular_year,
</if>
<if test="financialPlan != null">
financial_plan,
</if>
<if test="analysisTeacherScore != null">
analysis_teacher_score,
</if>
<if test="caseTeacherScore != null">
case_teacher_score,
</if>
<if test="userId != null">
user_id,
</if>
<if test="isAnswer != null">
is_answer,
</if>
<if test="analysis != null">
analysis,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="caseConsumptionPlanId != null">
#{caseConsumptionPlanId,jdbcType=VARCHAR},
</if>
<if test="caseId != null">
#{caseId,jdbcType=VARCHAR},
</if>
<if test="monthlyInvestment != null">
#{monthlyInvestment,jdbcType=DECIMAL},
</if>
<if test="availableAssets != null">
#{availableAssets,jdbcType=DECIMAL},
</if>
<if test="shopHouseYear != null">
#{shopHouseYear,jdbcType=INTEGER},
</if>
<if test="houseArea != null">
#{houseArea,jdbcType=DECIMAL},
</if>
<if test="housePrice != null">
#{housePrice,jdbcType=DECIMAL},
</if>
<if test="houseAllMoney != null">
#{houseAllMoney,jdbcType=DECIMAL},
</if>
<if test="houseDownPaymentPercent != null">
#{houseDownPaymentPercent,jdbcType=DECIMAL},
</if>
<if test="houseLoanYear != null">
#{houseLoanYear,jdbcType=INTEGER},
</if>
<if test="houseLoanRate != null">
#{houseLoanRate,jdbcType=DECIMAL},
</if>
<if test="houseDownPayment != null">
#{houseDownPayment,jdbcType=DECIMAL},
</if>
<if test="houseTotalAmount != null">
#{houseTotalAmount,jdbcType=DECIMAL},
</if>
<if test="disposableInput != null">
#{disposableInput,jdbcType=DECIMAL},
</if>
<if test="houseMonthlyAmount != null">
#{houseMonthlyAmount,jdbcType=DECIMAL},
</if>
<if test="shopCarYear != null">
#{shopCarYear,jdbcType=INTEGER},
</if>
<if test="carType != null">
#{carType,jdbcType=VARCHAR},
</if>
<if test="carPrice != null">
#{carPrice,jdbcType=DECIMAL},
</if>
<if test="carDownPaymentPercent != null">
#{carDownPaymentPercent,jdbcType=DECIMAL},
</if>
<if test="carLoanYear != null">
#{carLoanYear,jdbcType=INTEGER},
</if>
<if test="carLoanRate != null">
#{carLoanRate,jdbcType=DECIMAL},
</if>
<if test="purchaseTax != null">
#{purchaseTax,jdbcType=DECIMAL},
</if>
<if test="carRegFee != null">
#{carRegFee,jdbcType=DECIMAL},
</if>
<if test="displacement != null">
#{displacement,jdbcType=INTEGER},
</if>
<if test="vehicleAndVesselTax != null">
#{vehicleAndVesselTax,jdbcType=DECIMAL},
</if>
<if test="motorVehicleCompulsory != null">
#{motorVehicleCompulsory,jdbcType=DECIMAL},
</if>
<if test="motorVehicleCommercial != null">
#{motorVehicleCommercial,jdbcType=DECIMAL},
</if>
<if test="carDownPayment != null">
#{carDownPayment,jdbcType=DECIMAL},
</if>
<if test="carTotalAmount != null">
#{carTotalAmount,jdbcType=DECIMAL},
</if>
<if test="carMonthlyAmount != null">
#{carMonthlyAmount,jdbcType=DECIMAL},
</if>
<if test="returnOnInvestment != null">
#{returnOnInvestment,jdbcType=DECIMAL},
</if>
<if test="lumpSum != null">
#{lumpSum,jdbcType=DECIMAL},
</if>
<if test="monthRegularInvestAmount != null">
#{monthRegularInvestAmount,jdbcType=DECIMAL},
</if>
<if test="regularYear != null">
#{regularYear,jdbcType=INTEGER},
</if>
<if test="financialPlan != null">
#{financialPlan,jdbcType=VARCHAR},
</if>
<if test="analysisTeacherScore != null">
#{analysisTeacherScore,jdbcType=DECIMAL},
</if>
<if test="caseTeacherScore != null">
#{caseTeacherScore,jdbcType=DECIMAL},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
<if test="isAnswer != null">
#{isAnswer,jdbcType=VARCHAR},
</if>
<if test="analysis != null">
#{analysis,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.sztzjy.money_management.entity.CaseConsumptionPlanExample" resultType="java.lang.Long">
select count(*) from case_consumption_plan
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update case_consumption_plan
<set>
<if test="record.caseConsumptionPlanId != null">
case_consumption_plan_id = #{record.caseConsumptionPlanId,jdbcType=VARCHAR},
</if>
<if test="record.caseId != null">
case_id = #{record.caseId,jdbcType=VARCHAR},
</if>
<if test="record.monthlyInvestment != null">
monthly_investment = #{record.monthlyInvestment,jdbcType=DECIMAL},
</if>
<if test="record.availableAssets != null">
available_assets = #{record.availableAssets,jdbcType=DECIMAL},
</if>
<if test="record.shopHouseYear != null">
shop_house_year = #{record.shopHouseYear,jdbcType=INTEGER},
</if>
<if test="record.houseArea != null">
house_area = #{record.houseArea,jdbcType=DECIMAL},
</if>
<if test="record.housePrice != null">
house_price = #{record.housePrice,jdbcType=DECIMAL},
</if>
<if test="record.houseAllMoney != null">
house_all_money = #{record.houseAllMoney,jdbcType=DECIMAL},
</if>
<if test="record.houseDownPaymentPercent != null">
house_down_payment_percent = #{record.houseDownPaymentPercent,jdbcType=DECIMAL},
</if>
<if test="record.houseLoanYear != null">
house_loan_year = #{record.houseLoanYear,jdbcType=INTEGER},
</if>
<if test="record.houseLoanRate != null">
house_loan_rate = #{record.houseLoanRate,jdbcType=DECIMAL},
</if>
<if test="record.houseDownPayment != null">
house_down_payment = #{record.houseDownPayment,jdbcType=DECIMAL},
</if>
<if test="record.houseTotalAmount != null">
house_total_amount = #{record.houseTotalAmount,jdbcType=DECIMAL},
</if>
<if test="record.disposableInput != null">
disposable_input = #{record.disposableInput,jdbcType=DECIMAL},
</if>
<if test="record.houseMonthlyAmount != null">
house_monthly_amount = #{record.houseMonthlyAmount,jdbcType=DECIMAL},
</if>
<if test="record.shopCarYear != null">
shop_car_year = #{record.shopCarYear,jdbcType=INTEGER},
</if>
<if test="record.carType != null">
car_type = #{record.carType,jdbcType=VARCHAR},
</if>
<if test="record.carPrice != null">
car_price = #{record.carPrice,jdbcType=DECIMAL},
</if>
<if test="record.carDownPaymentPercent != null">
car_down_payment_percent = #{record.carDownPaymentPercent,jdbcType=DECIMAL},
</if>
<if test="record.carLoanYear != null">
car_loan_year = #{record.carLoanYear,jdbcType=INTEGER},
</if>
<if test="record.carLoanRate != null">
car_loan_rate = #{record.carLoanRate,jdbcType=DECIMAL},
</if>
<if test="record.purchaseTax != null">
purchase_tax = #{record.purchaseTax,jdbcType=DECIMAL},
</if>
<if test="record.carRegFee != null">
car_reg_fee = #{record.carRegFee,jdbcType=DECIMAL},
</if>
<if test="record.displacement != null">
displacement = #{record.displacement,jdbcType=INTEGER},
</if>
<if test="record.vehicleAndVesselTax != null">
vehicle_and_vessel_tax = #{record.vehicleAndVesselTax,jdbcType=DECIMAL},
</if>
<if test="record.motorVehicleCompulsory != null">
motor_vehicle_compulsory = #{record.motorVehicleCompulsory,jdbcType=DECIMAL},
</if>
<if test="record.motorVehicleCommercial != null">
motor_vehicle_commercial = #{record.motorVehicleCommercial,jdbcType=DECIMAL},
</if>
<if test="record.carDownPayment != null">
car_down_payment = #{record.carDownPayment,jdbcType=DECIMAL},
</if>
<if test="record.carTotalAmount != null">
car_total_amount = #{record.carTotalAmount,jdbcType=DECIMAL},
</if>
<if test="record.carMonthlyAmount != null">
car_monthly_amount = #{record.carMonthlyAmount,jdbcType=DECIMAL},
</if>
<if test="record.returnOnInvestment != null">
return_on_investment = #{record.returnOnInvestment,jdbcType=DECIMAL},
</if>
<if test="record.lumpSum != null">
lump_sum = #{record.lumpSum,jdbcType=DECIMAL},
</if>
<if test="record.monthRegularInvestAmount != null">
month_regular_invest_amount = #{record.monthRegularInvestAmount,jdbcType=DECIMAL},
</if>
<if test="record.regularYear != null">
regular_year = #{record.regularYear,jdbcType=INTEGER},
</if>
<if test="record.financialPlan != null">
financial_plan = #{record.financialPlan,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.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if test="record.isAnswer != null">
is_answer = #{record.isAnswer,jdbcType=VARCHAR},
</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_consumption_plan
set case_consumption_plan_id = #{record.caseConsumptionPlanId,jdbcType=VARCHAR},
case_id = #{record.caseId,jdbcType=VARCHAR},
monthly_investment = #{record.monthlyInvestment,jdbcType=DECIMAL},
available_assets = #{record.availableAssets,jdbcType=DECIMAL},
shop_house_year = #{record.shopHouseYear,jdbcType=INTEGER},
house_area = #{record.houseArea,jdbcType=DECIMAL},
house_price = #{record.housePrice,jdbcType=DECIMAL},
house_all_money = #{record.houseAllMoney,jdbcType=DECIMAL},
house_down_payment_percent = #{record.houseDownPaymentPercent,jdbcType=DECIMAL},
house_loan_year = #{record.houseLoanYear,jdbcType=INTEGER},
house_loan_rate = #{record.houseLoanRate,jdbcType=DECIMAL},
house_down_payment = #{record.houseDownPayment,jdbcType=DECIMAL},
house_total_amount = #{record.houseTotalAmount,jdbcType=DECIMAL},
disposable_input = #{record.disposableInput,jdbcType=DECIMAL},
house_monthly_amount = #{record.houseMonthlyAmount,jdbcType=DECIMAL},
shop_car_year = #{record.shopCarYear,jdbcType=INTEGER},
car_type = #{record.carType,jdbcType=VARCHAR},
car_price = #{record.carPrice,jdbcType=DECIMAL},
car_down_payment_percent = #{record.carDownPaymentPercent,jdbcType=DECIMAL},
car_loan_year = #{record.carLoanYear,jdbcType=INTEGER},
car_loan_rate = #{record.carLoanRate,jdbcType=DECIMAL},
purchase_tax = #{record.purchaseTax,jdbcType=DECIMAL},
car_reg_fee = #{record.carRegFee,jdbcType=DECIMAL},
displacement = #{record.displacement,jdbcType=INTEGER},
vehicle_and_vessel_tax = #{record.vehicleAndVesselTax,jdbcType=DECIMAL},
motor_vehicle_compulsory = #{record.motorVehicleCompulsory,jdbcType=DECIMAL},
motor_vehicle_commercial = #{record.motorVehicleCommercial,jdbcType=DECIMAL},
car_down_payment = #{record.carDownPayment,jdbcType=DECIMAL},
car_total_amount = #{record.carTotalAmount,jdbcType=DECIMAL},
car_monthly_amount = #{record.carMonthlyAmount,jdbcType=DECIMAL},
return_on_investment = #{record.returnOnInvestment,jdbcType=DECIMAL},
lump_sum = #{record.lumpSum,jdbcType=DECIMAL},
month_regular_invest_amount = #{record.monthRegularInvestAmount,jdbcType=DECIMAL},
regular_year = #{record.regularYear,jdbcType=INTEGER},
financial_plan = #{record.financialPlan,jdbcType=VARCHAR},
analysis_teacher_score = #{record.analysisTeacherScore,jdbcType=DECIMAL},
case_teacher_score = #{record.caseTeacherScore,jdbcType=DECIMAL},
user_id = #{record.userId,jdbcType=VARCHAR},
is_answer = #{record.isAnswer,jdbcType=VARCHAR},
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_consumption_plan
set case_consumption_plan_id = #{record.caseConsumptionPlanId,jdbcType=VARCHAR},
case_id = #{record.caseId,jdbcType=VARCHAR},
monthly_investment = #{record.monthlyInvestment,jdbcType=DECIMAL},
available_assets = #{record.availableAssets,jdbcType=DECIMAL},
shop_house_year = #{record.shopHouseYear,jdbcType=INTEGER},
house_area = #{record.houseArea,jdbcType=DECIMAL},
house_price = #{record.housePrice,jdbcType=DECIMAL},
house_all_money = #{record.houseAllMoney,jdbcType=DECIMAL},
house_down_payment_percent = #{record.houseDownPaymentPercent,jdbcType=DECIMAL},
house_loan_year = #{record.houseLoanYear,jdbcType=INTEGER},
house_loan_rate = #{record.houseLoanRate,jdbcType=DECIMAL},
house_down_payment = #{record.houseDownPayment,jdbcType=DECIMAL},
house_total_amount = #{record.houseTotalAmount,jdbcType=DECIMAL},
disposable_input = #{record.disposableInput,jdbcType=DECIMAL},
house_monthly_amount = #{record.houseMonthlyAmount,jdbcType=DECIMAL},
shop_car_year = #{record.shopCarYear,jdbcType=INTEGER},
car_type = #{record.carType,jdbcType=VARCHAR},
car_price = #{record.carPrice,jdbcType=DECIMAL},
car_down_payment_percent = #{record.carDownPaymentPercent,jdbcType=DECIMAL},
car_loan_year = #{record.carLoanYear,jdbcType=INTEGER},
car_loan_rate = #{record.carLoanRate,jdbcType=DECIMAL},
purchase_tax = #{record.purchaseTax,jdbcType=DECIMAL},
car_reg_fee = #{record.carRegFee,jdbcType=DECIMAL},
displacement = #{record.displacement,jdbcType=INTEGER},
vehicle_and_vessel_tax = #{record.vehicleAndVesselTax,jdbcType=DECIMAL},
motor_vehicle_compulsory = #{record.motorVehicleCompulsory,jdbcType=DECIMAL},
motor_vehicle_commercial = #{record.motorVehicleCommercial,jdbcType=DECIMAL},
car_down_payment = #{record.carDownPayment,jdbcType=DECIMAL},
car_total_amount = #{record.carTotalAmount,jdbcType=DECIMAL},
car_monthly_amount = #{record.carMonthlyAmount,jdbcType=DECIMAL},
return_on_investment = #{record.returnOnInvestment,jdbcType=DECIMAL},
lump_sum = #{record.lumpSum,jdbcType=DECIMAL},
month_regular_invest_amount = #{record.monthRegularInvestAmount,jdbcType=DECIMAL},
regular_year = #{record.regularYear,jdbcType=INTEGER},
financial_plan = #{record.financialPlan,jdbcType=VARCHAR},
analysis_teacher_score = #{record.analysisTeacherScore,jdbcType=DECIMAL},
case_teacher_score = #{record.caseTeacherScore,jdbcType=DECIMAL},
user_id = #{record.userId,jdbcType=VARCHAR},
is_answer = #{record.isAnswer,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.money_management.entity.CaseConsumptionPlan">
update case_consumption_plan
<set>
<if test="caseId != null">
case_id = #{caseId,jdbcType=VARCHAR},
</if>
<if test="monthlyInvestment != null">
monthly_investment = #{monthlyInvestment,jdbcType=DECIMAL},
</if>
<if test="availableAssets != null">
available_assets = #{availableAssets,jdbcType=DECIMAL},
</if>
<if test="shopHouseYear != null">
shop_house_year = #{shopHouseYear,jdbcType=INTEGER},
</if>
<if test="houseArea != null">
house_area = #{houseArea,jdbcType=DECIMAL},
</if>
<if test="housePrice != null">
house_price = #{housePrice,jdbcType=DECIMAL},
</if>
<if test="houseAllMoney != null">
house_all_money = #{houseAllMoney,jdbcType=DECIMAL},
</if>
<if test="houseDownPaymentPercent != null">
house_down_payment_percent = #{houseDownPaymentPercent,jdbcType=DECIMAL},
</if>
<if test="houseLoanYear != null">
house_loan_year = #{houseLoanYear,jdbcType=INTEGER},
</if>
<if test="houseLoanRate != null">
house_loan_rate = #{houseLoanRate,jdbcType=DECIMAL},
</if>
<if test="houseDownPayment != null">
house_down_payment = #{houseDownPayment,jdbcType=DECIMAL},
</if>
<if test="houseTotalAmount != null">
house_total_amount = #{houseTotalAmount,jdbcType=DECIMAL},
</if>
<if test="disposableInput != null">
disposable_input = #{disposableInput,jdbcType=DECIMAL},
</if>
<if test="houseMonthlyAmount != null">
house_monthly_amount = #{houseMonthlyAmount,jdbcType=DECIMAL},
</if>
<if test="shopCarYear != null">
shop_car_year = #{shopCarYear,jdbcType=INTEGER},
</if>
<if test="carType != null">
car_type = #{carType,jdbcType=VARCHAR},
</if>
<if test="carPrice != null">
car_price = #{carPrice,jdbcType=DECIMAL},
</if>
<if test="carDownPaymentPercent != null">
car_down_payment_percent = #{carDownPaymentPercent,jdbcType=DECIMAL},
</if>
<if test="carLoanYear != null">
car_loan_year = #{carLoanYear,jdbcType=INTEGER},
</if>
<if test="carLoanRate != null">
car_loan_rate = #{carLoanRate,jdbcType=DECIMAL},
</if>
<if test="purchaseTax != null">
purchase_tax = #{purchaseTax,jdbcType=DECIMAL},
</if>
<if test="carRegFee != null">
car_reg_fee = #{carRegFee,jdbcType=DECIMAL},
</if>
<if test="displacement != null">
displacement = #{displacement,jdbcType=INTEGER},
</if>
<if test="vehicleAndVesselTax != null">
vehicle_and_vessel_tax = #{vehicleAndVesselTax,jdbcType=DECIMAL},
</if>
<if test="motorVehicleCompulsory != null">
motor_vehicle_compulsory = #{motorVehicleCompulsory,jdbcType=DECIMAL},
</if>
<if test="motorVehicleCommercial != null">
motor_vehicle_commercial = #{motorVehicleCommercial,jdbcType=DECIMAL},
</if>
<if test="carDownPayment != null">
car_down_payment = #{carDownPayment,jdbcType=DECIMAL},
</if>
<if test="carTotalAmount != null">
car_total_amount = #{carTotalAmount,jdbcType=DECIMAL},
</if>
<if test="carMonthlyAmount != null">
car_monthly_amount = #{carMonthlyAmount,jdbcType=DECIMAL},
</if>
<if test="returnOnInvestment != null">
return_on_investment = #{returnOnInvestment,jdbcType=DECIMAL},
</if>
<if test="lumpSum != null">
lump_sum = #{lumpSum,jdbcType=DECIMAL},
</if>
<if test="monthRegularInvestAmount != null">
month_regular_invest_amount = #{monthRegularInvestAmount,jdbcType=DECIMAL},
</if>
<if test="regularYear != null">
regular_year = #{regularYear,jdbcType=INTEGER},
</if>
<if test="financialPlan != null">
financial_plan = #{financialPlan,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="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="isAnswer != null">
is_answer = #{isAnswer,jdbcType=VARCHAR},
</if>
<if test="analysis != null">
analysis = #{analysis,jdbcType=LONGVARCHAR},
</if>
</set>
where case_consumption_plan_id = #{caseConsumptionPlanId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.money_management.entity.CaseConsumptionPlan">
update case_consumption_plan
set case_id = #{caseId,jdbcType=VARCHAR},
monthly_investment = #{monthlyInvestment,jdbcType=DECIMAL},
available_assets = #{availableAssets,jdbcType=DECIMAL},
shop_house_year = #{shopHouseYear,jdbcType=INTEGER},
house_area = #{houseArea,jdbcType=DECIMAL},
house_price = #{housePrice,jdbcType=DECIMAL},
house_all_money = #{houseAllMoney,jdbcType=DECIMAL},
house_down_payment_percent = #{houseDownPaymentPercent,jdbcType=DECIMAL},
house_loan_year = #{houseLoanYear,jdbcType=INTEGER},
house_loan_rate = #{houseLoanRate,jdbcType=DECIMAL},
house_down_payment = #{houseDownPayment,jdbcType=DECIMAL},
house_total_amount = #{houseTotalAmount,jdbcType=DECIMAL},
disposable_input = #{disposableInput,jdbcType=DECIMAL},
house_monthly_amount = #{houseMonthlyAmount,jdbcType=DECIMAL},
shop_car_year = #{shopCarYear,jdbcType=INTEGER},
car_type = #{carType,jdbcType=VARCHAR},
car_price = #{carPrice,jdbcType=DECIMAL},
car_down_payment_percent = #{carDownPaymentPercent,jdbcType=DECIMAL},
car_loan_year = #{carLoanYear,jdbcType=INTEGER},
car_loan_rate = #{carLoanRate,jdbcType=DECIMAL},
purchase_tax = #{purchaseTax,jdbcType=DECIMAL},
car_reg_fee = #{carRegFee,jdbcType=DECIMAL},
displacement = #{displacement,jdbcType=INTEGER},
vehicle_and_vessel_tax = #{vehicleAndVesselTax,jdbcType=DECIMAL},
motor_vehicle_compulsory = #{motorVehicleCompulsory,jdbcType=DECIMAL},
motor_vehicle_commercial = #{motorVehicleCommercial,jdbcType=DECIMAL},
car_down_payment = #{carDownPayment,jdbcType=DECIMAL},
car_total_amount = #{carTotalAmount,jdbcType=DECIMAL},
car_monthly_amount = #{carMonthlyAmount,jdbcType=DECIMAL},
return_on_investment = #{returnOnInvestment,jdbcType=DECIMAL},
lump_sum = #{lumpSum,jdbcType=DECIMAL},
month_regular_invest_amount = #{monthRegularInvestAmount,jdbcType=DECIMAL},
regular_year = #{regularYear,jdbcType=INTEGER},
financial_plan = #{financialPlan,jdbcType=VARCHAR},
analysis_teacher_score = #{analysisTeacherScore,jdbcType=DECIMAL},
case_teacher_score = #{caseTeacherScore,jdbcType=DECIMAL},
user_id = #{userId,jdbcType=VARCHAR},
is_answer = #{isAnswer,jdbcType=VARCHAR},
analysis = #{analysis,jdbcType=LONGVARCHAR}
where case_consumption_plan_id = #{caseConsumptionPlanId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.money_management.entity.CaseConsumptionPlan">
update case_consumption_plan
set case_id = #{caseId,jdbcType=VARCHAR},
monthly_investment = #{monthlyInvestment,jdbcType=DECIMAL},
available_assets = #{availableAssets,jdbcType=DECIMAL},
shop_house_year = #{shopHouseYear,jdbcType=INTEGER},
house_area = #{houseArea,jdbcType=DECIMAL},
house_price = #{housePrice,jdbcType=DECIMAL},
house_all_money = #{houseAllMoney,jdbcType=DECIMAL},
house_down_payment_percent = #{houseDownPaymentPercent,jdbcType=DECIMAL},
house_loan_year = #{houseLoanYear,jdbcType=INTEGER},
house_loan_rate = #{houseLoanRate,jdbcType=DECIMAL},
house_down_payment = #{houseDownPayment,jdbcType=DECIMAL},
house_total_amount = #{houseTotalAmount,jdbcType=DECIMAL},
disposable_input = #{disposableInput,jdbcType=DECIMAL},
house_monthly_amount = #{houseMonthlyAmount,jdbcType=DECIMAL},
shop_car_year = #{shopCarYear,jdbcType=INTEGER},
car_type = #{carType,jdbcType=VARCHAR},
car_price = #{carPrice,jdbcType=DECIMAL},
car_down_payment_percent = #{carDownPaymentPercent,jdbcType=DECIMAL},
car_loan_year = #{carLoanYear,jdbcType=INTEGER},
car_loan_rate = #{carLoanRate,jdbcType=DECIMAL},
purchase_tax = #{purchaseTax,jdbcType=DECIMAL},
car_reg_fee = #{carRegFee,jdbcType=DECIMAL},
displacement = #{displacement,jdbcType=INTEGER},
vehicle_and_vessel_tax = #{vehicleAndVesselTax,jdbcType=DECIMAL},
motor_vehicle_compulsory = #{motorVehicleCompulsory,jdbcType=DECIMAL},
motor_vehicle_commercial = #{motorVehicleCommercial,jdbcType=DECIMAL},
car_down_payment = #{carDownPayment,jdbcType=DECIMAL},
car_total_amount = #{carTotalAmount,jdbcType=DECIMAL},
car_monthly_amount = #{carMonthlyAmount,jdbcType=DECIMAL},
return_on_investment = #{returnOnInvestment,jdbcType=DECIMAL},
lump_sum = #{lumpSum,jdbcType=DECIMAL},
month_regular_invest_amount = #{monthRegularInvestAmount,jdbcType=DECIMAL},
regular_year = #{regularYear,jdbcType=INTEGER},
financial_plan = #{financialPlan,jdbcType=VARCHAR},
analysis_teacher_score = #{analysisTeacherScore,jdbcType=DECIMAL},
case_teacher_score = #{caseTeacherScore,jdbcType=DECIMAL},
user_id = #{userId,jdbcType=VARCHAR},
is_answer = #{isAnswer,jdbcType=VARCHAR}
where case_consumption_plan_id = #{caseConsumptionPlanId,jdbcType=VARCHAR}
</update>
</mapper>

File diff suppressed because it is too large Load Diff

@ -0,0 +1,789 @@
<?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="financial_plan" jdbcType="VARCHAR" property="financialPlan" />
<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, financial_plan,
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,
financial_plan, 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},
#{financialPlan,jdbcType=VARCHAR}, #{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="financialPlan != null">
financial_plan,
</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="financialPlan != null">
#{financialPlan,jdbcType=VARCHAR},
</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.financialPlan != null">
financial_plan = #{record.financialPlan,jdbcType=VARCHAR},
</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},
financial_plan = #{record.financialPlan,jdbcType=VARCHAR},
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},
financial_plan = #{record.financialPlan,jdbcType=VARCHAR},
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="financialPlan != null">
financial_plan = #{financialPlan,jdbcType=VARCHAR},
</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},
financial_plan = #{financialPlan,jdbcType=VARCHAR},
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},
financial_plan = #{financialPlan,jdbcType=VARCHAR},
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>

@ -0,0 +1,467 @@
<?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.CaseStartAnUndertakingPlanMapper">
<resultMap id="BaseResultMap" type="com.sztzjy.money_management.entity.CaseStartAnUndertakingPlan">
<id column="case_start_an_undertaking_plan_id" jdbcType="VARCHAR" property="caseStartAnUndertakingPlanId" />
<result column="caseid" jdbcType="VARCHAR" property="caseid" />
<result column="age" jdbcType="INTEGER" property="age" />
<result column="start_plan_age" jdbcType="INTEGER" property="startPlanAge" />
<result column="distance_year" jdbcType="INTEGER" property="distanceYear" />
<result column="cost_input" jdbcType="DECIMAL" property="costInput" />
<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="financial_plan" jdbcType="VARCHAR" property="financialPlan" />
<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.CaseStartAnUndertakingPlan">
<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_start_an_undertaking_plan_id, caseid, age, start_plan_age, distance_year, cost_input,
return_on_investment_rate, disposable_input, monthly_investment, regular_year, target_amount,
financial_plan, 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.CaseStartAnUndertakingPlanExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from case_start_an_undertaking_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.CaseStartAnUndertakingPlanExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from case_start_an_undertaking_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_start_an_undertaking_plan
where case_start_an_undertaking_plan_id = #{caseStartAnUndertakingPlanId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from case_start_an_undertaking_plan
where case_start_an_undertaking_plan_id = #{caseStartAnUndertakingPlanId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.sztzjy.money_management.entity.CaseStartAnUndertakingPlanExample">
delete from case_start_an_undertaking_plan
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.sztzjy.money_management.entity.CaseStartAnUndertakingPlan">
insert into case_start_an_undertaking_plan (case_start_an_undertaking_plan_id, caseid,
age, start_plan_age, distance_year,
cost_input, return_on_investment_rate, disposable_input,
monthly_investment, regular_year, target_amount,
financial_plan, user_id, is_answer,
analysis_teacher_score, case_teacher_score,
analysis)
values (#{caseStartAnUndertakingPlanId,jdbcType=VARCHAR}, #{caseid,jdbcType=VARCHAR},
#{age,jdbcType=INTEGER}, #{startPlanAge,jdbcType=INTEGER}, #{distanceYear,jdbcType=INTEGER},
#{costInput,jdbcType=DECIMAL}, #{returnOnInvestmentRate,jdbcType=DECIMAL}, #{disposableInput,jdbcType=DECIMAL},
#{monthlyInvestment,jdbcType=DECIMAL}, #{regularYear,jdbcType=INTEGER}, #{targetAmount,jdbcType=DECIMAL},
#{financialPlan,jdbcType=VARCHAR}, #{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.CaseStartAnUndertakingPlan">
insert into case_start_an_undertaking_plan
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="caseStartAnUndertakingPlanId != null">
case_start_an_undertaking_plan_id,
</if>
<if test="caseid != null">
caseid,
</if>
<if test="age != null">
age,
</if>
<if test="startPlanAge != null">
start_plan_age,
</if>
<if test="distanceYear != null">
distance_year,
</if>
<if test="costInput != null">
cost_input,
</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="financialPlan != null">
financial_plan,
</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="caseStartAnUndertakingPlanId != null">
#{caseStartAnUndertakingPlanId,jdbcType=VARCHAR},
</if>
<if test="caseid != null">
#{caseid,jdbcType=VARCHAR},
</if>
<if test="age != null">
#{age,jdbcType=INTEGER},
</if>
<if test="startPlanAge != null">
#{startPlanAge,jdbcType=INTEGER},
</if>
<if test="distanceYear != null">
#{distanceYear,jdbcType=INTEGER},
</if>
<if test="costInput != null">
#{costInput,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="financialPlan != null">
#{financialPlan,jdbcType=VARCHAR},
</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.CaseStartAnUndertakingPlanExample" resultType="java.lang.Long">
select count(*) from case_start_an_undertaking_plan
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update case_start_an_undertaking_plan
<set>
<if test="record.caseStartAnUndertakingPlanId != null">
case_start_an_undertaking_plan_id = #{record.caseStartAnUndertakingPlanId,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.startPlanAge != null">
start_plan_age = #{record.startPlanAge,jdbcType=INTEGER},
</if>
<if test="record.distanceYear != null">
distance_year = #{record.distanceYear,jdbcType=INTEGER},
</if>
<if test="record.costInput != null">
cost_input = #{record.costInput,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.financialPlan != null">
financial_plan = #{record.financialPlan,jdbcType=VARCHAR},
</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_start_an_undertaking_plan
set case_start_an_undertaking_plan_id = #{record.caseStartAnUndertakingPlanId,jdbcType=VARCHAR},
caseid = #{record.caseid,jdbcType=VARCHAR},
age = #{record.age,jdbcType=INTEGER},
start_plan_age = #{record.startPlanAge,jdbcType=INTEGER},
distance_year = #{record.distanceYear,jdbcType=INTEGER},
cost_input = #{record.costInput,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},
financial_plan = #{record.financialPlan,jdbcType=VARCHAR},
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_start_an_undertaking_plan
set case_start_an_undertaking_plan_id = #{record.caseStartAnUndertakingPlanId,jdbcType=VARCHAR},
caseid = #{record.caseid,jdbcType=VARCHAR},
age = #{record.age,jdbcType=INTEGER},
start_plan_age = #{record.startPlanAge,jdbcType=INTEGER},
distance_year = #{record.distanceYear,jdbcType=INTEGER},
cost_input = #{record.costInput,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},
financial_plan = #{record.financialPlan,jdbcType=VARCHAR},
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.CaseStartAnUndertakingPlan">
update case_start_an_undertaking_plan
<set>
<if test="caseid != null">
caseid = #{caseid,jdbcType=VARCHAR},
</if>
<if test="age != null">
age = #{age,jdbcType=INTEGER},
</if>
<if test="startPlanAge != null">
start_plan_age = #{startPlanAge,jdbcType=INTEGER},
</if>
<if test="distanceYear != null">
distance_year = #{distanceYear,jdbcType=INTEGER},
</if>
<if test="costInput != null">
cost_input = #{costInput,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="financialPlan != null">
financial_plan = #{financialPlan,jdbcType=VARCHAR},
</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_start_an_undertaking_plan_id = #{caseStartAnUndertakingPlanId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.money_management.entity.CaseStartAnUndertakingPlan">
update case_start_an_undertaking_plan
set caseid = #{caseid,jdbcType=VARCHAR},
age = #{age,jdbcType=INTEGER},
start_plan_age = #{startPlanAge,jdbcType=INTEGER},
distance_year = #{distanceYear,jdbcType=INTEGER},
cost_input = #{costInput,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},
financial_plan = #{financialPlan,jdbcType=VARCHAR},
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_start_an_undertaking_plan_id = #{caseStartAnUndertakingPlanId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.money_management.entity.CaseStartAnUndertakingPlan">
update case_start_an_undertaking_plan
set caseid = #{caseid,jdbcType=VARCHAR},
age = #{age,jdbcType=INTEGER},
start_plan_age = #{startPlanAge,jdbcType=INTEGER},
distance_year = #{distanceYear,jdbcType=INTEGER},
cost_input = #{costInput,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},
financial_plan = #{financialPlan,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR},
is_answer = #{isAnswer,jdbcType=VARCHAR},
analysis_teacher_score = #{analysisTeacherScore,jdbcType=DECIMAL},
case_teacher_score = #{caseTeacherScore,jdbcType=DECIMAL}
where case_start_an_undertaking_plan_id = #{caseStartAnUndertakingPlanId,jdbcType=VARCHAR}
</update>
</mapper>
Loading…
Cancel
Save