|
|
|
@ -12,6 +12,7 @@
|
|
|
|
|
<result column="insurance_amount" jdbcType="DECIMAL" property="insuranceAmount" />
|
|
|
|
|
<result column="insurance_period" jdbcType="VARCHAR" property="insurancePeriod" />
|
|
|
|
|
<result column="payment_method" jdbcType="VARCHAR" property="paymentMethod" />
|
|
|
|
|
<result column="annual_premium" jdbcType="DECIMAL" property="annualPremium" />
|
|
|
|
|
<result column="add_time" jdbcType="TIMESTAMP" property="addTime" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
@ -74,7 +75,8 @@
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
insurance_productinfo_id, product_select_id, level, insurance_pro_id, insured_person,
|
|
|
|
|
gender, age, insurance_amount, insurance_period, payment_method, add_time
|
|
|
|
|
gender, age, insurance_amount, insurance_period, payment_method, annual_premium,
|
|
|
|
|
add_time
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.money_management.entity.CaseInvestmentPlanInsuranceProductInfoExample" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
@ -110,13 +112,13 @@
|
|
|
|
|
insert into case_investment_plan_insurance_productinfo (insurance_productinfo_id, product_select_id,
|
|
|
|
|
level, insurance_pro_id, insured_person,
|
|
|
|
|
gender, age, insurance_amount,
|
|
|
|
|
insurance_period, payment_method, add_time
|
|
|
|
|
)
|
|
|
|
|
insurance_period, payment_method, annual_premium,
|
|
|
|
|
add_time)
|
|
|
|
|
values (#{insuranceProductinfoId,jdbcType=VARCHAR}, #{productSelectId,jdbcType=VARCHAR},
|
|
|
|
|
#{level,jdbcType=VARCHAR}, #{insuranceProId,jdbcType=VARCHAR}, #{insuredPerson,jdbcType=VARCHAR},
|
|
|
|
|
#{gender,jdbcType=CHAR}, #{age,jdbcType=INTEGER}, #{insuranceAmount,jdbcType=DECIMAL},
|
|
|
|
|
#{insurancePeriod,jdbcType=VARCHAR}, #{paymentMethod,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}
|
|
|
|
|
)
|
|
|
|
|
#{insurancePeriod,jdbcType=VARCHAR}, #{paymentMethod,jdbcType=VARCHAR}, #{annualPremium,jdbcType=DECIMAL},
|
|
|
|
|
#{addTime,jdbcType=TIMESTAMP})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.money_management.entity.CaseInvestmentPlanInsuranceProductInfo">
|
|
|
|
|
insert into case_investment_plan_insurance_productinfo
|
|
|
|
@ -151,6 +153,9 @@
|
|
|
|
|
<if test="paymentMethod != null">
|
|
|
|
|
payment_method,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="annualPremium != null">
|
|
|
|
|
annual_premium,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="addTime != null">
|
|
|
|
|
add_time,
|
|
|
|
|
</if>
|
|
|
|
@ -186,6 +191,9 @@
|
|
|
|
|
<if test="paymentMethod != null">
|
|
|
|
|
#{paymentMethod,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="annualPremium != null">
|
|
|
|
|
#{annualPremium,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="addTime != null">
|
|
|
|
|
#{addTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
@ -230,6 +238,9 @@
|
|
|
|
|
<if test="record.paymentMethod != null">
|
|
|
|
|
payment_method = #{record.paymentMethod,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.annualPremium != null">
|
|
|
|
|
annual_premium = #{record.annualPremium,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.addTime != null">
|
|
|
|
|
add_time = #{record.addTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
@ -250,6 +261,7 @@
|
|
|
|
|
insurance_amount = #{record.insuranceAmount,jdbcType=DECIMAL},
|
|
|
|
|
insurance_period = #{record.insurancePeriod,jdbcType=VARCHAR},
|
|
|
|
|
payment_method = #{record.paymentMethod,jdbcType=VARCHAR},
|
|
|
|
|
annual_premium = #{record.annualPremium,jdbcType=DECIMAL},
|
|
|
|
|
add_time = #{record.addTime,jdbcType=TIMESTAMP}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
@ -285,6 +297,9 @@
|
|
|
|
|
<if test="paymentMethod != null">
|
|
|
|
|
payment_method = #{paymentMethod,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="annualPremium != null">
|
|
|
|
|
annual_premium = #{annualPremium,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="addTime != null">
|
|
|
|
|
add_time = #{addTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
@ -302,6 +317,7 @@
|
|
|
|
|
insurance_amount = #{insuranceAmount,jdbcType=DECIMAL},
|
|
|
|
|
insurance_period = #{insurancePeriod,jdbcType=VARCHAR},
|
|
|
|
|
payment_method = #{paymentMethod,jdbcType=VARCHAR},
|
|
|
|
|
annual_premium = #{annualPremium,jdbcType=DECIMAL},
|
|
|
|
|
add_time = #{addTime,jdbcType=TIMESTAMP}
|
|
|
|
|
where insurance_productinfo_id = #{insuranceProductinfoId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|