|
@@ -3,7 +3,9 @@
|
|
|
<mapper namespace="com.idea.paymentManagement.mapper.MaintenanceFundsManagementMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.idea.paymentManagement.model.MaintenanceFundsManagement">
|
|
|
<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="payment_method" jdbcType="INTEGER" property="paymentMethod" />
|
|
|
<result column="pay_time" jdbcType="TIMESTAMP" property="payTime" />
|
|
|
<result column="bank_name" jdbcType="VARCHAR" property="bankName" />
|
|
@@ -79,8 +81,9 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, contract_id, payment_method, pay_time, bank_name, bank_branch_name, bank_number,
|
|
|
- pay_money, receivable_money, created_id, created_at, updated_at, updated_id
|
|
|
+ id, house_id, contract_id, customer_management_id, payment_method, pay_time, bank_name,
|
|
|
+ bank_branch_name, bank_number, pay_money, receivable_money, created_id, created_at,
|
|
|
+ updated_at, updated_id
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
|
remark, payment_voucher
|
|
@@ -134,18 +137,18 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.idea.paymentManagement.model.MaintenanceFundsManagement">
|
|
|
- insert into maintenance_funds_management (id, contract_id, payment_method,
|
|
|
- pay_time, bank_name, bank_branch_name,
|
|
|
- bank_number, pay_money, receivable_money,
|
|
|
- created_id, created_at, updated_at,
|
|
|
- updated_id, remark, payment_voucher
|
|
|
- )
|
|
|
- values (#{id,jdbcType=VARCHAR}, #{contractId,jdbcType=VARCHAR}, #{paymentMethod,jdbcType=INTEGER},
|
|
|
- #{payTime,jdbcType=TIMESTAMP}, #{bankName,jdbcType=VARCHAR}, #{bankBranchName,jdbcType=VARCHAR},
|
|
|
- #{bankNumber,jdbcType=CHAR}, #{payMoney,jdbcType=DECIMAL}, #{receivableMoney,jdbcType=DECIMAL},
|
|
|
- #{createdId,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
- #{updatedId,jdbcType=VARCHAR}, #{remark,jdbcType=LONGVARCHAR}, #{paymentVoucher,jdbcType=LONGVARCHAR}
|
|
|
- )
|
|
|
+ insert into maintenance_funds_management (id, house_id, contract_id,
|
|
|
+ customer_management_id, payment_method, pay_time,
|
|
|
+ bank_name, bank_branch_name, bank_number,
|
|
|
+ pay_money, receivable_money, created_id,
|
|
|
+ created_at, updated_at, updated_id,
|
|
|
+ remark, payment_voucher)
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{houseId,jdbcType=VARCHAR}, #{contractId,jdbcType=VARCHAR},
|
|
|
+ #{customerManagementId,jdbcType=VARCHAR}, #{paymentMethod,jdbcType=INTEGER}, #{payTime,jdbcType=TIMESTAMP},
|
|
|
+ #{bankName,jdbcType=VARCHAR}, #{bankBranchName,jdbcType=VARCHAR}, #{bankNumber,jdbcType=CHAR},
|
|
|
+ #{payMoney,jdbcType=DECIMAL}, #{receivableMoney,jdbcType=DECIMAL}, #{createdId,jdbcType=VARCHAR},
|
|
|
+ #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{updatedId,jdbcType=VARCHAR},
|
|
|
+ #{remark,jdbcType=LONGVARCHAR}, #{paymentVoucher,jdbcType=LONGVARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.idea.paymentManagement.model.MaintenanceFundsManagement">
|
|
|
insert into maintenance_funds_management
|
|
@@ -153,9 +156,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="paymentMethod != null">
|
|
|
payment_method,
|
|
|
</if>
|
|
@@ -200,9 +209,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="paymentMethod != null">
|
|
|
#{paymentMethod,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -256,9 +271,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.paymentMethod != null">
|
|
|
payment_method = #{record.paymentMethod,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -306,7 +327,9 @@
|
|
|
<update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
update maintenance_funds_management
|
|
|
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},
|
|
|
payment_method = #{record.paymentMethod,jdbcType=INTEGER},
|
|
|
pay_time = #{record.payTime,jdbcType=TIMESTAMP},
|
|
|
bank_name = #{record.bankName,jdbcType=VARCHAR},
|
|
@@ -327,7 +350,9 @@
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update maintenance_funds_management
|
|
|
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},
|
|
|
payment_method = #{record.paymentMethod,jdbcType=INTEGER},
|
|
|
pay_time = #{record.payTime,jdbcType=TIMESTAMP},
|
|
|
bank_name = #{record.bankName,jdbcType=VARCHAR},
|
|
@@ -346,9 +371,15 @@
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.idea.paymentManagement.model.MaintenanceFundsManagement">
|
|
|
update maintenance_funds_management
|
|
|
<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="paymentMethod != null">
|
|
|
payment_method = #{paymentMethod,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -393,7 +424,9 @@
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.idea.paymentManagement.model.MaintenanceFundsManagement">
|
|
|
update maintenance_funds_management
|
|
|
- set contract_id = #{contractId,jdbcType=VARCHAR},
|
|
|
+ set house_id = #{houseId,jdbcType=VARCHAR},
|
|
|
+ contract_id = #{contractId,jdbcType=VARCHAR},
|
|
|
+ customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
payment_method = #{paymentMethod,jdbcType=INTEGER},
|
|
|
pay_time = #{payTime,jdbcType=TIMESTAMP},
|
|
|
bank_name = #{bankName,jdbcType=VARCHAR},
|
|
@@ -411,7 +444,9 @@
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.idea.paymentManagement.model.MaintenanceFundsManagement">
|
|
|
update maintenance_funds_management
|
|
|
- set contract_id = #{contractId,jdbcType=VARCHAR},
|
|
|
+ set house_id = #{houseId,jdbcType=VARCHAR},
|
|
|
+ contract_id = #{contractId,jdbcType=VARCHAR},
|
|
|
+ customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
payment_method = #{paymentMethod,jdbcType=INTEGER},
|
|
|
pay_time = #{payTime,jdbcType=TIMESTAMP},
|
|
|
bank_name = #{bankName,jdbcType=VARCHAR},
|