|
@@ -3,7 +3,9 @@
|
|
|
<mapper namespace="com.idea.paymentManagement.mapper.RefundManageMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.idea.paymentManagement.model.RefundManage">
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
+ <result column="house_id" jdbcType="VARCHAR" property="houseId" />
|
|
|
<result column="contract_id" jdbcType="VARCHAR" property="contractId" />
|
|
|
+ <result column="customer_management_id" jdbcType="VARCHAR" property="customerManagementId" />
|
|
|
<result column="approval_number" jdbcType="VARCHAR" property="approvalNumber" />
|
|
|
<result column="applicant" jdbcType="VARCHAR" property="applicant" />
|
|
|
<result column="identity_card" jdbcType="VARCHAR" property="identityCard" />
|
|
@@ -81,9 +83,9 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, contract_id, approval_number, applicant, identity_card, reason, buyer_name, refund_amount,
|
|
|
- actual_refund_amount, deductible, bank_number, created_id, created_at, updated_at,
|
|
|
- updated_id
|
|
|
+ id, house_id, contract_id, customer_management_id, approval_number, applicant, identity_card,
|
|
|
+ reason, buyer_name, refund_amount, actual_refund_amount, deductible, bank_number,
|
|
|
+ created_id, created_at, updated_at, updated_id
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
|
remark, file_list
|
|
@@ -137,18 +139,20 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.idea.paymentManagement.model.RefundManage">
|
|
|
- insert into refund_manage (id, contract_id, approval_number,
|
|
|
- applicant, identity_card, reason,
|
|
|
- buyer_name, refund_amount, actual_refund_amount,
|
|
|
- deductible, bank_number, created_id,
|
|
|
- created_at, updated_at, updated_id,
|
|
|
- remark, file_list)
|
|
|
- values (#{id,jdbcType=VARCHAR}, #{contractId,jdbcType=VARCHAR}, #{approvalNumber,jdbcType=VARCHAR},
|
|
|
- #{applicant,jdbcType=VARCHAR}, #{identityCard,jdbcType=VARCHAR}, #{reason,jdbcType=INTEGER},
|
|
|
- #{buyerName,jdbcType=VARCHAR}, #{refundAmount,jdbcType=DECIMAL}, #{actualRefundAmount,jdbcType=DECIMAL},
|
|
|
- #{deductible,jdbcType=DECIMAL}, #{bankNumber,jdbcType=VARCHAR}, #{createdId,jdbcType=VARCHAR},
|
|
|
- #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{updatedId,jdbcType=VARCHAR},
|
|
|
- #{remark,jdbcType=LONGVARCHAR}, #{fileList,jdbcType=LONGVARCHAR})
|
|
|
+ insert into refund_manage (id, house_id, contract_id,
|
|
|
+ customer_management_id, approval_number, applicant,
|
|
|
+ identity_card, reason, buyer_name,
|
|
|
+ refund_amount, actual_refund_amount, deductible,
|
|
|
+ bank_number, created_id, created_at,
|
|
|
+ updated_at, updated_id, remark,
|
|
|
+ file_list)
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{houseId,jdbcType=VARCHAR}, #{contractId,jdbcType=VARCHAR},
|
|
|
+ #{customerManagementId,jdbcType=VARCHAR}, #{approvalNumber,jdbcType=VARCHAR}, #{applicant,jdbcType=VARCHAR},
|
|
|
+ #{identityCard,jdbcType=VARCHAR}, #{reason,jdbcType=INTEGER}, #{buyerName,jdbcType=VARCHAR},
|
|
|
+ #{refundAmount,jdbcType=DECIMAL}, #{actualRefundAmount,jdbcType=DECIMAL}, #{deductible,jdbcType=DECIMAL},
|
|
|
+ #{bankNumber,jdbcType=VARCHAR}, #{createdId,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP},
|
|
|
+ #{updatedAt,jdbcType=TIMESTAMP}, #{updatedId,jdbcType=VARCHAR}, #{remark,jdbcType=LONGVARCHAR},
|
|
|
+ #{fileList,jdbcType=LONGVARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.idea.paymentManagement.model.RefundManage">
|
|
|
insert into refund_manage
|
|
@@ -156,9 +160,15 @@
|
|
|
<if test="id != null">
|
|
|
id,
|
|
|
</if>
|
|
|
+ <if test="houseId != null">
|
|
|
+ house_id,
|
|
|
+ </if>
|
|
|
<if test="contractId != null">
|
|
|
contract_id,
|
|
|
</if>
|
|
|
+ <if test="customerManagementId != null">
|
|
|
+ customer_management_id,
|
|
|
+ </if>
|
|
|
<if test="approvalNumber != null">
|
|
|
approval_number,
|
|
|
</if>
|
|
@@ -209,9 +219,15 @@
|
|
|
<if test="id != null">
|
|
|
#{id,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="houseId != null">
|
|
|
+ #{houseId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="contractId != null">
|
|
|
#{contractId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="customerManagementId != null">
|
|
|
+ #{customerManagementId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="approvalNumber != null">
|
|
|
#{approvalNumber,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -271,9 +287,15 @@
|
|
|
<if test="record.id != null">
|
|
|
id = #{record.id,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.houseId != null">
|
|
|
+ house_id = #{record.houseId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.contractId != null">
|
|
|
contract_id = #{record.contractId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.customerManagementId != null">
|
|
|
+ customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.approvalNumber != null">
|
|
|
approval_number = #{record.approvalNumber,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -327,7 +349,9 @@
|
|
|
<update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
update refund_manage
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ house_id = #{record.houseId,jdbcType=VARCHAR},
|
|
|
contract_id = #{record.contractId,jdbcType=VARCHAR},
|
|
|
+ customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
approval_number = #{record.approvalNumber,jdbcType=VARCHAR},
|
|
|
applicant = #{record.applicant,jdbcType=VARCHAR},
|
|
|
identity_card = #{record.identityCard,jdbcType=VARCHAR},
|
|
@@ -350,7 +374,9 @@
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update refund_manage
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ house_id = #{record.houseId,jdbcType=VARCHAR},
|
|
|
contract_id = #{record.contractId,jdbcType=VARCHAR},
|
|
|
+ customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
approval_number = #{record.approvalNumber,jdbcType=VARCHAR},
|
|
|
applicant = #{record.applicant,jdbcType=VARCHAR},
|
|
|
identity_card = #{record.identityCard,jdbcType=VARCHAR},
|
|
@@ -371,9 +397,15 @@
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.idea.paymentManagement.model.RefundManage">
|
|
|
update refund_manage
|
|
|
<set>
|
|
|
+ <if test="houseId != null">
|
|
|
+ house_id = #{houseId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="contractId != null">
|
|
|
contract_id = #{contractId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="customerManagementId != null">
|
|
|
+ customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="approvalNumber != null">
|
|
|
approval_number = #{approvalNumber,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -424,7 +456,9 @@
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.idea.paymentManagement.model.RefundManage">
|
|
|
update refund_manage
|
|
|
- set contract_id = #{contractId,jdbcType=VARCHAR},
|
|
|
+ set house_id = #{houseId,jdbcType=VARCHAR},
|
|
|
+ contract_id = #{contractId,jdbcType=VARCHAR},
|
|
|
+ customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
approval_number = #{approvalNumber,jdbcType=VARCHAR},
|
|
|
applicant = #{applicant,jdbcType=VARCHAR},
|
|
|
identity_card = #{identityCard,jdbcType=VARCHAR},
|
|
@@ -444,7 +478,9 @@
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.idea.paymentManagement.model.RefundManage">
|
|
|
update refund_manage
|
|
|
- set contract_id = #{contractId,jdbcType=VARCHAR},
|
|
|
+ set house_id = #{houseId,jdbcType=VARCHAR},
|
|
|
+ contract_id = #{contractId,jdbcType=VARCHAR},
|
|
|
+ customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
approval_number = #{approvalNumber,jdbcType=VARCHAR},
|
|
|
applicant = #{applicant,jdbcType=VARCHAR},
|
|
|
identity_card = #{identityCard,jdbcType=VARCHAR},
|