|
|
|
@ -4,14 +4,20 @@
|
|
|
|
|
<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" />
|
|
|
|
@ -26,15 +32,10 @@
|
|
|
|
|
<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="first_amount" jdbcType="DECIMAL" property="firstAmount" />
|
|
|
|
|
<result column="return_on_investment" jdbcType="DECIMAL" property="returnOnInvestment" />
|
|
|
|
|
<result column="disposable_input" jdbcType="DECIMAL" property="disposableInput" />
|
|
|
|
|
<result column="monthly_investment" jdbcType="DECIMAL" property="monthlyInvestment" />
|
|
|
|
|
<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="target_amount" jdbcType="DECIMAL" property="targetAmount" />
|
|
|
|
|
<result column="shop_house_year" jdbcType="INTEGER" property="shopHouseYear" />
|
|
|
|
|
<result column="house_all_money" jdbcType="DECIMAL" property="houseAllMoney" />
|
|
|
|
|
<result column="shop_car_year" jdbcType="INTEGER" property="shopCarYear" />
|
|
|
|
|
<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" />
|
|
|
|
@ -102,14 +103,14 @@
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
case_consumption_plan_id, case_id, house_area, house_price, house_down_payment_percent,
|
|
|
|
|
house_loan_year, house_loan_rate, house_down_payment, house_total_amount, house_monthly_amount,
|
|
|
|
|
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, first_amount, return_on_investment,
|
|
|
|
|
disposable_input, monthly_investment, regular_year, target_amount, shop_house_year,
|
|
|
|
|
house_all_money, shop_car_year, analysis_teacher_score, case_teacher_score, user_id,
|
|
|
|
|
is_answer
|
|
|
|
|
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, analysis_teacher_score,
|
|
|
|
|
case_teacher_score, user_id, is_answer
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Blob_Column_List">
|
|
|
|
|
analysis
|
|
|
|
@ -163,34 +164,36 @@
|
|
|
|
|
</if>
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.money_management.entity.CaseConsumptionPlan">
|
|
|
|
|
insert into case_consumption_plan (case_consumption_plan_id, case_id, house_area,
|
|
|
|
|
house_price, house_down_payment_percent, house_loan_year,
|
|
|
|
|
house_loan_rate, house_down_payment, house_total_amount,
|
|
|
|
|
house_monthly_amount, car_type, car_price,
|
|
|
|
|
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, first_amount,
|
|
|
|
|
return_on_investment, disposable_input, monthly_investment,
|
|
|
|
|
regular_year, target_amount, shop_house_year,
|
|
|
|
|
house_all_money, shop_car_year, analysis_teacher_score,
|
|
|
|
|
case_teacher_score, user_id, is_answer,
|
|
|
|
|
analysis)
|
|
|
|
|
values (#{caseConsumptionPlanId,jdbcType=VARCHAR}, #{caseId,jdbcType=VARCHAR}, #{houseArea,jdbcType=DECIMAL},
|
|
|
|
|
#{housePrice,jdbcType=DECIMAL}, #{houseDownPaymentPercent,jdbcType=DECIMAL}, #{houseLoanYear,jdbcType=INTEGER},
|
|
|
|
|
#{houseLoanRate,jdbcType=DECIMAL}, #{houseDownPayment,jdbcType=DECIMAL}, #{houseTotalAmount,jdbcType=DECIMAL},
|
|
|
|
|
#{houseMonthlyAmount,jdbcType=DECIMAL}, #{carType,jdbcType=VARCHAR}, #{carPrice,jdbcType=DECIMAL},
|
|
|
|
|
car_total_amount, car_monthly_amount, return_on_investment,
|
|
|
|
|
lump_sum, month_regular_invest_amount, regular_year,
|
|
|
|
|
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}, #{firstAmount,jdbcType=DECIMAL},
|
|
|
|
|
#{returnOnInvestment,jdbcType=DECIMAL}, #{disposableInput,jdbcType=DECIMAL}, #{monthlyInvestment,jdbcType=DECIMAL},
|
|
|
|
|
#{regularYear,jdbcType=INTEGER}, #{targetAmount,jdbcType=DECIMAL}, #{shopHouseYear,jdbcType=INTEGER},
|
|
|
|
|
#{houseAllMoney,jdbcType=DECIMAL}, #{shopCarYear,jdbcType=INTEGER}, #{analysisTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
#{caseTeacherScore,jdbcType=DECIMAL}, #{userId,jdbcType=VARCHAR}, #{isAnswer,jdbcType=VARCHAR},
|
|
|
|
|
#{analysis,jdbcType=LONGVARCHAR})
|
|
|
|
|
#{carTotalAmount,jdbcType=DECIMAL}, #{carMonthlyAmount,jdbcType=DECIMAL}, #{returnOnInvestment,jdbcType=DECIMAL},
|
|
|
|
|
#{lumpSum,jdbcType=DECIMAL}, #{monthRegularInvestAmount,jdbcType=DECIMAL}, #{regularYear,jdbcType=INTEGER},
|
|
|
|
|
#{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
|
|
|
|
@ -201,12 +204,24 @@
|
|
|
|
|
<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>
|
|
|
|
@ -222,9 +237,15 @@
|
|
|
|
|
<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>
|
|
|
|
@ -267,33 +288,18 @@
|
|
|
|
|
<if test="carMonthlyAmount != null">
|
|
|
|
|
car_monthly_amount,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="firstAmount != null">
|
|
|
|
|
first_amount,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="returnOnInvestment != null">
|
|
|
|
|
return_on_investment,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="disposableInput != null">
|
|
|
|
|
disposable_input,
|
|
|
|
|
<if test="lumpSum != null">
|
|
|
|
|
lump_sum,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="monthlyInvestment != null">
|
|
|
|
|
monthly_investment,
|
|
|
|
|
<if test="monthRegularInvestAmount != null">
|
|
|
|
|
month_regular_invest_amount,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="regularYear != null">
|
|
|
|
|
regular_year,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="targetAmount != null">
|
|
|
|
|
target_amount,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="shopHouseYear != null">
|
|
|
|
|
shop_house_year,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="houseAllMoney != null">
|
|
|
|
|
house_all_money,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="shopCarYear != null">
|
|
|
|
|
shop_car_year,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="analysisTeacherScore != null">
|
|
|
|
|
analysis_teacher_score,
|
|
|
|
|
</if>
|
|
|
|
@ -317,12 +323,24 @@
|
|
|
|
|
<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>
|
|
|
|
@ -338,9 +356,15 @@
|
|
|
|
|
<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>
|
|
|
|
@ -383,33 +407,18 @@
|
|
|
|
|
<if test="carMonthlyAmount != null">
|
|
|
|
|
#{carMonthlyAmount,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="firstAmount != null">
|
|
|
|
|
#{firstAmount,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="returnOnInvestment != null">
|
|
|
|
|
#{returnOnInvestment,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="disposableInput != null">
|
|
|
|
|
#{disposableInput,jdbcType=DECIMAL},
|
|
|
|
|
<if test="lumpSum != null">
|
|
|
|
|
#{lumpSum,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="monthlyInvestment != null">
|
|
|
|
|
#{monthlyInvestment,jdbcType=DECIMAL},
|
|
|
|
|
<if test="monthRegularInvestAmount != null">
|
|
|
|
|
#{monthRegularInvestAmount,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="regularYear != null">
|
|
|
|
|
#{regularYear,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="targetAmount != null">
|
|
|
|
|
#{targetAmount,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="shopHouseYear != null">
|
|
|
|
|
#{shopHouseYear,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="houseAllMoney != null">
|
|
|
|
|
#{houseAllMoney,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="shopCarYear != null">
|
|
|
|
|
#{shopCarYear,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="analysisTeacherScore != null">
|
|
|
|
|
#{analysisTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
@ -442,12 +451,24 @@
|
|
|
|
|
<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>
|
|
|
|
@ -463,9 +484,15 @@
|
|
|
|
|
<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>
|
|
|
|
@ -508,33 +535,18 @@
|
|
|
|
|
<if test="record.carMonthlyAmount != null">
|
|
|
|
|
car_monthly_amount = #{record.carMonthlyAmount,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.firstAmount != null">
|
|
|
|
|
first_amount = #{record.firstAmount,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.returnOnInvestment != null">
|
|
|
|
|
return_on_investment = #{record.returnOnInvestment,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.disposableInput != null">
|
|
|
|
|
disposable_input = #{record.disposableInput,jdbcType=DECIMAL},
|
|
|
|
|
<if test="record.lumpSum != null">
|
|
|
|
|
lump_sum = #{record.lumpSum,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.monthlyInvestment != null">
|
|
|
|
|
monthly_investment = #{record.monthlyInvestment,jdbcType=DECIMAL},
|
|
|
|
|
<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.targetAmount != null">
|
|
|
|
|
target_amount = #{record.targetAmount,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.shopHouseYear != null">
|
|
|
|
|
shop_house_year = #{record.shopHouseYear,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.houseAllMoney != null">
|
|
|
|
|
house_all_money = #{record.houseAllMoney,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.shopCarYear != null">
|
|
|
|
|
shop_car_year = #{record.shopCarYear,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.analysisTeacherScore != null">
|
|
|
|
|
analysis_teacher_score = #{record.analysisTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
@ -559,14 +571,20 @@
|
|
|
|
|
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},
|
|
|
|
@ -581,15 +599,10 @@
|
|
|
|
|
car_down_payment = #{record.carDownPayment,jdbcType=DECIMAL},
|
|
|
|
|
car_total_amount = #{record.carTotalAmount,jdbcType=DECIMAL},
|
|
|
|
|
car_monthly_amount = #{record.carMonthlyAmount,jdbcType=DECIMAL},
|
|
|
|
|
first_amount = #{record.firstAmount,jdbcType=DECIMAL},
|
|
|
|
|
return_on_investment = #{record.returnOnInvestment,jdbcType=DECIMAL},
|
|
|
|
|
disposable_input = #{record.disposableInput,jdbcType=DECIMAL},
|
|
|
|
|
monthly_investment = #{record.monthlyInvestment,jdbcType=DECIMAL},
|
|
|
|
|
lump_sum = #{record.lumpSum,jdbcType=DECIMAL},
|
|
|
|
|
month_regular_invest_amount = #{record.monthRegularInvestAmount,jdbcType=DECIMAL},
|
|
|
|
|
regular_year = #{record.regularYear,jdbcType=INTEGER},
|
|
|
|
|
target_amount = #{record.targetAmount,jdbcType=DECIMAL},
|
|
|
|
|
shop_house_year = #{record.shopHouseYear,jdbcType=INTEGER},
|
|
|
|
|
house_all_money = #{record.houseAllMoney,jdbcType=DECIMAL},
|
|
|
|
|
shop_car_year = #{record.shopCarYear,jdbcType=INTEGER},
|
|
|
|
|
analysis_teacher_score = #{record.analysisTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
case_teacher_score = #{record.caseTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
@ -603,14 +616,20 @@
|
|
|
|
|
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},
|
|
|
|
@ -625,15 +644,10 @@
|
|
|
|
|
car_down_payment = #{record.carDownPayment,jdbcType=DECIMAL},
|
|
|
|
|
car_total_amount = #{record.carTotalAmount,jdbcType=DECIMAL},
|
|
|
|
|
car_monthly_amount = #{record.carMonthlyAmount,jdbcType=DECIMAL},
|
|
|
|
|
first_amount = #{record.firstAmount,jdbcType=DECIMAL},
|
|
|
|
|
return_on_investment = #{record.returnOnInvestment,jdbcType=DECIMAL},
|
|
|
|
|
disposable_input = #{record.disposableInput,jdbcType=DECIMAL},
|
|
|
|
|
monthly_investment = #{record.monthlyInvestment,jdbcType=DECIMAL},
|
|
|
|
|
lump_sum = #{record.lumpSum,jdbcType=DECIMAL},
|
|
|
|
|
month_regular_invest_amount = #{record.monthRegularInvestAmount,jdbcType=DECIMAL},
|
|
|
|
|
regular_year = #{record.regularYear,jdbcType=INTEGER},
|
|
|
|
|
target_amount = #{record.targetAmount,jdbcType=DECIMAL},
|
|
|
|
|
shop_house_year = #{record.shopHouseYear,jdbcType=INTEGER},
|
|
|
|
|
house_all_money = #{record.houseAllMoney,jdbcType=DECIMAL},
|
|
|
|
|
shop_car_year = #{record.shopCarYear,jdbcType=INTEGER},
|
|
|
|
|
analysis_teacher_score = #{record.analysisTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
case_teacher_score = #{record.caseTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
@ -648,12 +662,24 @@
|
|
|
|
|
<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>
|
|
|
|
@ -669,9 +695,15 @@
|
|
|
|
|
<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>
|
|
|
|
@ -714,33 +746,18 @@
|
|
|
|
|
<if test="carMonthlyAmount != null">
|
|
|
|
|
car_monthly_amount = #{carMonthlyAmount,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="firstAmount != null">
|
|
|
|
|
first_amount = #{firstAmount,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="returnOnInvestment != null">
|
|
|
|
|
return_on_investment = #{returnOnInvestment,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="disposableInput != null">
|
|
|
|
|
disposable_input = #{disposableInput,jdbcType=DECIMAL},
|
|
|
|
|
<if test="lumpSum != null">
|
|
|
|
|
lump_sum = #{lumpSum,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="monthlyInvestment != null">
|
|
|
|
|
monthly_investment = #{monthlyInvestment,jdbcType=DECIMAL},
|
|
|
|
|
<if test="monthRegularInvestAmount != null">
|
|
|
|
|
month_regular_invest_amount = #{monthRegularInvestAmount,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="shopHouseYear != null">
|
|
|
|
|
shop_house_year = #{shopHouseYear,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="houseAllMoney != null">
|
|
|
|
|
house_all_money = #{houseAllMoney,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="shopCarYear != null">
|
|
|
|
|
shop_car_year = #{shopCarYear,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="analysisTeacherScore != null">
|
|
|
|
|
analysis_teacher_score = #{analysisTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
@ -762,14 +779,20 @@
|
|
|
|
|
<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},
|
|
|
|
@ -784,15 +807,10 @@
|
|
|
|
|
car_down_payment = #{carDownPayment,jdbcType=DECIMAL},
|
|
|
|
|
car_total_amount = #{carTotalAmount,jdbcType=DECIMAL},
|
|
|
|
|
car_monthly_amount = #{carMonthlyAmount,jdbcType=DECIMAL},
|
|
|
|
|
first_amount = #{firstAmount,jdbcType=DECIMAL},
|
|
|
|
|
return_on_investment = #{returnOnInvestment,jdbcType=DECIMAL},
|
|
|
|
|
disposable_input = #{disposableInput,jdbcType=DECIMAL},
|
|
|
|
|
monthly_investment = #{monthlyInvestment,jdbcType=DECIMAL},
|
|
|
|
|
lump_sum = #{lumpSum,jdbcType=DECIMAL},
|
|
|
|
|
month_regular_invest_amount = #{monthRegularInvestAmount,jdbcType=DECIMAL},
|
|
|
|
|
regular_year = #{regularYear,jdbcType=INTEGER},
|
|
|
|
|
target_amount = #{targetAmount,jdbcType=DECIMAL},
|
|
|
|
|
shop_house_year = #{shopHouseYear,jdbcType=INTEGER},
|
|
|
|
|
house_all_money = #{houseAllMoney,jdbcType=DECIMAL},
|
|
|
|
|
shop_car_year = #{shopCarYear,jdbcType=INTEGER},
|
|
|
|
|
analysis_teacher_score = #{analysisTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
case_teacher_score = #{caseTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
@ -803,14 +821,20 @@
|
|
|
|
|
<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},
|
|
|
|
@ -825,15 +849,10 @@
|
|
|
|
|
car_down_payment = #{carDownPayment,jdbcType=DECIMAL},
|
|
|
|
|
car_total_amount = #{carTotalAmount,jdbcType=DECIMAL},
|
|
|
|
|
car_monthly_amount = #{carMonthlyAmount,jdbcType=DECIMAL},
|
|
|
|
|
first_amount = #{firstAmount,jdbcType=DECIMAL},
|
|
|
|
|
return_on_investment = #{returnOnInvestment,jdbcType=DECIMAL},
|
|
|
|
|
disposable_input = #{disposableInput,jdbcType=DECIMAL},
|
|
|
|
|
monthly_investment = #{monthlyInvestment,jdbcType=DECIMAL},
|
|
|
|
|
lump_sum = #{lumpSum,jdbcType=DECIMAL},
|
|
|
|
|
month_regular_invest_amount = #{monthRegularInvestAmount,jdbcType=DECIMAL},
|
|
|
|
|
regular_year = #{regularYear,jdbcType=INTEGER},
|
|
|
|
|
target_amount = #{targetAmount,jdbcType=DECIMAL},
|
|
|
|
|
shop_house_year = #{shopHouseYear,jdbcType=INTEGER},
|
|
|
|
|
house_all_money = #{houseAllMoney,jdbcType=DECIMAL},
|
|
|
|
|
shop_car_year = #{shopCarYear,jdbcType=INTEGER},
|
|
|
|
|
analysis_teacher_score = #{analysisTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
case_teacher_score = #{caseTeacherScore,jdbcType=DECIMAL},
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|