|
@@ -3,6 +3,7 @@
|
|
|
<mapper namespace="com.idea.customerManagement.mapper.ContractManageMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.idea.customerManagement.model.ContractManage">
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
+ <result column="customer_management_id" jdbcType="VARCHAR" property="customerManagementId" />
|
|
|
<result column="record_number" jdbcType="VARCHAR" property="recordNumber" />
|
|
|
<result column="contract_number" jdbcType="VARCHAR" property="contractNumber" />
|
|
|
<result column="seller" jdbcType="VARCHAR" property="seller" />
|
|
@@ -19,11 +20,11 @@
|
|
|
<result column="buyer_money" jdbcType="DECIMAL" property="buyerMoney" />
|
|
|
<result column="buyer_name" jdbcType="VARCHAR" property="buyerName" />
|
|
|
<result column="payment_method" jdbcType="INTEGER" property="paymentMethod" />
|
|
|
+ <result column="down_payments_proportion" jdbcType="VARCHAR" property="downPaymentsProportion" />
|
|
|
<result column="deadline" jdbcType="TIMESTAMP" property="deadline" />
|
|
|
<result column="maintenance_funds" jdbcType="DECIMAL" property="maintenanceFunds" />
|
|
|
<result column="maintenance_total_price" jdbcType="DECIMAL" property="maintenanceTotalPrice" />
|
|
|
<result column="contract_status" jdbcType="INTEGER" property="contractStatus" />
|
|
|
- <result column="customer_management_id" jdbcType="VARCHAR" property="customerManagementId" />
|
|
|
<result column="subscription_funds" jdbcType="DECIMAL" property="subscriptionFunds" />
|
|
|
<result column="created_id" jdbcType="VARCHAR" property="createdId" />
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
|
|
@@ -94,10 +95,10 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, record_number, contract_number, seller, house_id, house_name, actual_build_area,
|
|
|
- actual_internal_area, actual_share_area, institution, signing_date, house_price,
|
|
|
- total_price, buyer_proportion, buyer_money, buyer_name, payment_method, deadline,
|
|
|
- maintenance_funds, maintenance_total_price, contract_status, customer_management_id,
|
|
|
+ id, customer_management_id, record_number, contract_number, seller, house_id, house_name,
|
|
|
+ actual_build_area, actual_internal_area, actual_share_area, institution, signing_date,
|
|
|
+ house_price, total_price, buyer_proportion, buyer_money, buyer_name, payment_method,
|
|
|
+ down_payments_proportion, deadline, maintenance_funds, maintenance_total_price, contract_status,
|
|
|
subscription_funds, created_id, created_at, updated_at, updated_id
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
@@ -152,28 +153,30 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.idea.customerManagement.model.ContractManage">
|
|
|
- insert into contract_manage (id, record_number, contract_number,
|
|
|
- seller, house_id, house_name,
|
|
|
- actual_build_area, actual_internal_area, actual_share_area,
|
|
|
- institution, signing_date, house_price,
|
|
|
- total_price, buyer_proportion, buyer_money,
|
|
|
- buyer_name, payment_method, deadline,
|
|
|
- maintenance_funds, maintenance_total_price,
|
|
|
- contract_status, customer_management_id, subscription_funds,
|
|
|
- created_id, created_at, updated_at,
|
|
|
- updated_id, remark, contract_original,
|
|
|
- contract_other)
|
|
|
- values (#{id,jdbcType=VARCHAR}, #{recordNumber,jdbcType=VARCHAR}, #{contractNumber,jdbcType=VARCHAR},
|
|
|
- #{seller,jdbcType=VARCHAR}, #{houseId,jdbcType=VARCHAR}, #{houseName,jdbcType=VARCHAR},
|
|
|
- #{actualBuildArea,jdbcType=DOUBLE}, #{actualInternalArea,jdbcType=DOUBLE}, #{actualShareArea,jdbcType=DOUBLE},
|
|
|
- #{institution,jdbcType=VARCHAR}, #{signingDate,jdbcType=TIMESTAMP}, #{housePrice,jdbcType=DECIMAL},
|
|
|
- #{totalPrice,jdbcType=DECIMAL}, #{buyerProportion,jdbcType=DOUBLE}, #{buyerMoney,jdbcType=DECIMAL},
|
|
|
- #{buyerName,jdbcType=VARCHAR}, #{paymentMethod,jdbcType=INTEGER}, #{deadline,jdbcType=TIMESTAMP},
|
|
|
- #{maintenanceFunds,jdbcType=DECIMAL}, #{maintenanceTotalPrice,jdbcType=DECIMAL},
|
|
|
- #{contractStatus,jdbcType=INTEGER}, #{customerManagementId,jdbcType=VARCHAR}, #{subscriptionFunds,jdbcType=DECIMAL},
|
|
|
- #{createdId,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
- #{updatedId,jdbcType=VARCHAR}, #{remark,jdbcType=LONGVARCHAR}, #{contractOriginal,jdbcType=LONGVARCHAR},
|
|
|
- #{contractOther,jdbcType=LONGVARCHAR})
|
|
|
+ insert into contract_manage (id, customer_management_id, record_number,
|
|
|
+ contract_number, seller, house_id,
|
|
|
+ house_name, actual_build_area, actual_internal_area,
|
|
|
+ actual_share_area, institution, signing_date,
|
|
|
+ house_price, total_price, buyer_proportion,
|
|
|
+ buyer_money, buyer_name, payment_method,
|
|
|
+ down_payments_proportion, deadline, maintenance_funds,
|
|
|
+ maintenance_total_price, contract_status,
|
|
|
+ subscription_funds, created_id, created_at,
|
|
|
+ updated_at, updated_id, remark,
|
|
|
+ contract_original, contract_other
|
|
|
+ )
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{customerManagementId,jdbcType=VARCHAR}, #{recordNumber,jdbcType=VARCHAR},
|
|
|
+ #{contractNumber,jdbcType=VARCHAR}, #{seller,jdbcType=VARCHAR}, #{houseId,jdbcType=VARCHAR},
|
|
|
+ #{houseName,jdbcType=VARCHAR}, #{actualBuildArea,jdbcType=DOUBLE}, #{actualInternalArea,jdbcType=DOUBLE},
|
|
|
+ #{actualShareArea,jdbcType=DOUBLE}, #{institution,jdbcType=VARCHAR}, #{signingDate,jdbcType=TIMESTAMP},
|
|
|
+ #{housePrice,jdbcType=DECIMAL}, #{totalPrice,jdbcType=DECIMAL}, #{buyerProportion,jdbcType=DOUBLE},
|
|
|
+ #{buyerMoney,jdbcType=DECIMAL}, #{buyerName,jdbcType=VARCHAR}, #{paymentMethod,jdbcType=INTEGER},
|
|
|
+ #{downPaymentsProportion,jdbcType=VARCHAR}, #{deadline,jdbcType=TIMESTAMP}, #{maintenanceFunds,jdbcType=DECIMAL},
|
|
|
+ #{maintenanceTotalPrice,jdbcType=DECIMAL}, #{contractStatus,jdbcType=INTEGER},
|
|
|
+ #{subscriptionFunds,jdbcType=DECIMAL}, #{createdId,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP},
|
|
|
+ #{updatedAt,jdbcType=TIMESTAMP}, #{updatedId,jdbcType=VARCHAR}, #{remark,jdbcType=LONGVARCHAR},
|
|
|
+ #{contractOriginal,jdbcType=LONGVARCHAR}, #{contractOther,jdbcType=LONGVARCHAR}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.idea.customerManagement.model.ContractManage">
|
|
|
insert into contract_manage
|
|
@@ -181,6 +184,9 @@
|
|
|
<if test="id != null">
|
|
|
id,
|
|
|
</if>
|
|
|
+ <if test="customerManagementId != null">
|
|
|
+ customer_management_id,
|
|
|
+ </if>
|
|
|
<if test="recordNumber != null">
|
|
|
record_number,
|
|
|
</if>
|
|
@@ -229,6 +235,9 @@
|
|
|
<if test="paymentMethod != null">
|
|
|
payment_method,
|
|
|
</if>
|
|
|
+ <if test="downPaymentsProportion != null">
|
|
|
+ down_payments_proportion,
|
|
|
+ </if>
|
|
|
<if test="deadline != null">
|
|
|
deadline,
|
|
|
</if>
|
|
@@ -241,9 +250,6 @@
|
|
|
<if test="contractStatus != null">
|
|
|
contract_status,
|
|
|
</if>
|
|
|
- <if test="customerManagementId != null">
|
|
|
- customer_management_id,
|
|
|
- </if>
|
|
|
<if test="subscriptionFunds != null">
|
|
|
subscription_funds,
|
|
|
</if>
|
|
@@ -273,6 +279,9 @@
|
|
|
<if test="id != null">
|
|
|
#{id,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="customerManagementId != null">
|
|
|
+ #{customerManagementId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="recordNumber != null">
|
|
|
#{recordNumber,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -321,6 +330,9 @@
|
|
|
<if test="paymentMethod != null">
|
|
|
#{paymentMethod,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="downPaymentsProportion != null">
|
|
|
+ #{downPaymentsProportion,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="deadline != null">
|
|
|
#{deadline,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -333,9 +345,6 @@
|
|
|
<if test="contractStatus != null">
|
|
|
#{contractStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="customerManagementId != null">
|
|
|
- #{customerManagementId,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="subscriptionFunds != null">
|
|
|
#{subscriptionFunds,jdbcType=DECIMAL},
|
|
|
</if>
|
|
@@ -374,6 +383,9 @@
|
|
|
<if test="record.id != null">
|
|
|
id = #{record.id,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.customerManagementId != null">
|
|
|
+ customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.recordNumber != null">
|
|
|
record_number = #{record.recordNumber,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -422,6 +434,9 @@
|
|
|
<if test="record.paymentMethod != null">
|
|
|
payment_method = #{record.paymentMethod,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="record.downPaymentsProportion != null">
|
|
|
+ down_payments_proportion = #{record.downPaymentsProportion,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.deadline != null">
|
|
|
deadline = #{record.deadline,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -434,9 +449,6 @@
|
|
|
<if test="record.contractStatus != null">
|
|
|
contract_status = #{record.contractStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="record.customerManagementId != null">
|
|
|
- customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="record.subscriptionFunds != null">
|
|
|
subscription_funds = #{record.subscriptionFunds,jdbcType=DECIMAL},
|
|
|
</if>
|
|
@@ -469,6 +481,7 @@
|
|
|
<update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
update contract_manage
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
record_number = #{record.recordNumber,jdbcType=VARCHAR},
|
|
|
contract_number = #{record.contractNumber,jdbcType=VARCHAR},
|
|
|
seller = #{record.seller,jdbcType=VARCHAR},
|
|
@@ -485,11 +498,11 @@
|
|
|
buyer_money = #{record.buyerMoney,jdbcType=DECIMAL},
|
|
|
buyer_name = #{record.buyerName,jdbcType=VARCHAR},
|
|
|
payment_method = #{record.paymentMethod,jdbcType=INTEGER},
|
|
|
+ down_payments_proportion = #{record.downPaymentsProportion,jdbcType=VARCHAR},
|
|
|
deadline = #{record.deadline,jdbcType=TIMESTAMP},
|
|
|
maintenance_funds = #{record.maintenanceFunds,jdbcType=DECIMAL},
|
|
|
maintenance_total_price = #{record.maintenanceTotalPrice,jdbcType=DECIMAL},
|
|
|
contract_status = #{record.contractStatus,jdbcType=INTEGER},
|
|
|
- customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
subscription_funds = #{record.subscriptionFunds,jdbcType=DECIMAL},
|
|
|
created_id = #{record.createdId,jdbcType=VARCHAR},
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
@@ -505,6 +518,7 @@
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update contract_manage
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
record_number = #{record.recordNumber,jdbcType=VARCHAR},
|
|
|
contract_number = #{record.contractNumber,jdbcType=VARCHAR},
|
|
|
seller = #{record.seller,jdbcType=VARCHAR},
|
|
@@ -521,11 +535,11 @@
|
|
|
buyer_money = #{record.buyerMoney,jdbcType=DECIMAL},
|
|
|
buyer_name = #{record.buyerName,jdbcType=VARCHAR},
|
|
|
payment_method = #{record.paymentMethod,jdbcType=INTEGER},
|
|
|
+ down_payments_proportion = #{record.downPaymentsProportion,jdbcType=VARCHAR},
|
|
|
deadline = #{record.deadline,jdbcType=TIMESTAMP},
|
|
|
maintenance_funds = #{record.maintenanceFunds,jdbcType=DECIMAL},
|
|
|
maintenance_total_price = #{record.maintenanceTotalPrice,jdbcType=DECIMAL},
|
|
|
contract_status = #{record.contractStatus,jdbcType=INTEGER},
|
|
|
- customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
subscription_funds = #{record.subscriptionFunds,jdbcType=DECIMAL},
|
|
|
created_id = #{record.createdId,jdbcType=VARCHAR},
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
@@ -538,6 +552,9 @@
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.idea.customerManagement.model.ContractManage">
|
|
|
update contract_manage
|
|
|
<set>
|
|
|
+ <if test="customerManagementId != null">
|
|
|
+ customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="recordNumber != null">
|
|
|
record_number = #{recordNumber,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -586,6 +603,9 @@
|
|
|
<if test="paymentMethod != null">
|
|
|
payment_method = #{paymentMethod,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="downPaymentsProportion != null">
|
|
|
+ down_payments_proportion = #{downPaymentsProportion,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="deadline != null">
|
|
|
deadline = #{deadline,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -598,9 +618,6 @@
|
|
|
<if test="contractStatus != null">
|
|
|
contract_status = #{contractStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="customerManagementId != null">
|
|
|
- customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="subscriptionFunds != null">
|
|
|
subscription_funds = #{subscriptionFunds,jdbcType=DECIMAL},
|
|
|
</if>
|
|
@@ -630,7 +647,8 @@
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.idea.customerManagement.model.ContractManage">
|
|
|
update contract_manage
|
|
|
- set record_number = #{recordNumber,jdbcType=VARCHAR},
|
|
|
+ set customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
+ record_number = #{recordNumber,jdbcType=VARCHAR},
|
|
|
contract_number = #{contractNumber,jdbcType=VARCHAR},
|
|
|
seller = #{seller,jdbcType=VARCHAR},
|
|
|
house_id = #{houseId,jdbcType=VARCHAR},
|
|
@@ -646,11 +664,11 @@
|
|
|
buyer_money = #{buyerMoney,jdbcType=DECIMAL},
|
|
|
buyer_name = #{buyerName,jdbcType=VARCHAR},
|
|
|
payment_method = #{paymentMethod,jdbcType=INTEGER},
|
|
|
+ down_payments_proportion = #{downPaymentsProportion,jdbcType=VARCHAR},
|
|
|
deadline = #{deadline,jdbcType=TIMESTAMP},
|
|
|
maintenance_funds = #{maintenanceFunds,jdbcType=DECIMAL},
|
|
|
maintenance_total_price = #{maintenanceTotalPrice,jdbcType=DECIMAL},
|
|
|
contract_status = #{contractStatus,jdbcType=INTEGER},
|
|
|
- customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
subscription_funds = #{subscriptionFunds,jdbcType=DECIMAL},
|
|
|
created_id = #{createdId,jdbcType=VARCHAR},
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
@@ -663,7 +681,8 @@
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.idea.customerManagement.model.ContractManage">
|
|
|
update contract_manage
|
|
|
- set record_number = #{recordNumber,jdbcType=VARCHAR},
|
|
|
+ set customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
+ record_number = #{recordNumber,jdbcType=VARCHAR},
|
|
|
contract_number = #{contractNumber,jdbcType=VARCHAR},
|
|
|
seller = #{seller,jdbcType=VARCHAR},
|
|
|
house_id = #{houseId,jdbcType=VARCHAR},
|
|
@@ -679,11 +698,11 @@
|
|
|
buyer_money = #{buyerMoney,jdbcType=DECIMAL},
|
|
|
buyer_name = #{buyerName,jdbcType=VARCHAR},
|
|
|
payment_method = #{paymentMethod,jdbcType=INTEGER},
|
|
|
+ down_payments_proportion = #{downPaymentsProportion,jdbcType=VARCHAR},
|
|
|
deadline = #{deadline,jdbcType=TIMESTAMP},
|
|
|
maintenance_funds = #{maintenanceFunds,jdbcType=DECIMAL},
|
|
|
maintenance_total_price = #{maintenanceTotalPrice,jdbcType=DECIMAL},
|
|
|
contract_status = #{contractStatus,jdbcType=INTEGER},
|
|
|
- customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
subscription_funds = #{subscriptionFunds,jdbcType=DECIMAL},
|
|
|
created_id = #{createdId,jdbcType=VARCHAR},
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP},
|