|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
<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="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" />
|
|
|
|
@ -103,7 +103,7 @@
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
case_consumption_plan_id, case_id, monthly_investment, "available assets", shop_house_year,
|
|
|
|
|
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,
|
|
|
|
@ -165,7 +165,7 @@
|
|
|
|
|
</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,
|
|
|
|
|
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,
|
|
|
|
@ -208,7 +208,7 @@
|
|
|
|
|
monthly_investment,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="availableAssets != null">
|
|
|
|
|
"available assets",
|
|
|
|
|
available_assets,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="shopHouseYear != null">
|
|
|
|
|
shop_house_year,
|
|
|
|
@ -455,7 +455,7 @@
|
|
|
|
|
monthly_investment = #{record.monthlyInvestment,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.availableAssets != null">
|
|
|
|
|
"available assets" = #{record.availableAssets,jdbcType=DECIMAL},
|
|
|
|
|
available_assets = #{record.availableAssets,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.shopHouseYear != null">
|
|
|
|
|
shop_house_year = #{record.shopHouseYear,jdbcType=INTEGER},
|
|
|
|
@ -572,7 +572,7 @@
|
|
|
|
|
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},
|
|
|
|
|
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},
|
|
|
|
@ -617,7 +617,7 @@
|
|
|
|
|
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},
|
|
|
|
|
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},
|
|
|
|
@ -666,7 +666,7 @@
|
|
|
|
|
monthly_investment = #{monthlyInvestment,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="availableAssets != null">
|
|
|
|
|
"available assets" = #{availableAssets,jdbcType=DECIMAL},
|
|
|
|
|
available_assets = #{availableAssets,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="shopHouseYear != null">
|
|
|
|
|
shop_house_year = #{shopHouseYear,jdbcType=INTEGER},
|
|
|
|
@ -780,7 +780,7 @@
|
|
|
|
|
update case_consumption_plan
|
|
|
|
|
set case_id = #{caseId,jdbcType=VARCHAR},
|
|
|
|
|
monthly_investment = #{monthlyInvestment,jdbcType=DECIMAL},
|
|
|
|
|
"available assets" = #{availableAssets,jdbcType=DECIMAL},
|
|
|
|
|
available_assets = #{availableAssets,jdbcType=DECIMAL},
|
|
|
|
|
shop_house_year = #{shopHouseYear,jdbcType=INTEGER},
|
|
|
|
|
house_area = #{houseArea,jdbcType=DECIMAL},
|
|
|
|
|
house_price = #{housePrice,jdbcType=DECIMAL},
|
|
|
|
@ -822,7 +822,7 @@
|
|
|
|
|
update case_consumption_plan
|
|
|
|
|
set case_id = #{caseId,jdbcType=VARCHAR},
|
|
|
|
|
monthly_investment = #{monthlyInvestment,jdbcType=DECIMAL},
|
|
|
|
|
"available assets" = #{availableAssets,jdbcType=DECIMAL},
|
|
|
|
|
available_assets = #{availableAssets,jdbcType=DECIMAL},
|
|
|
|
|
shop_house_year = #{shopHouseYear,jdbcType=INTEGER},
|
|
|
|
|
house_area = #{houseArea,jdbcType=DECIMAL},
|
|
|
|
|
house_price = #{housePrice,jdbcType=DECIMAL},
|
|
|
|
|