|
|
@@ -3,12 +3,13 @@
|
|
|
<mapper namespace="com.idea.customerManagement.mapper.IntentionalDepositMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.idea.customerManagement.model.IntentionalDeposit">
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
+ <result column="group_id" jdbcType="VARCHAR" property="groupId" />
|
|
|
+ <result column="disc_id" jdbcType="VARCHAR" property="discId" />
|
|
|
<result column="customer_management_id" jdbcType="VARCHAR" property="customerManagementId" />
|
|
|
<result column="receivable_money" jdbcType="DECIMAL" property="receivableMoney" />
|
|
|
<result column="received_amount" jdbcType="DECIMAL" property="receivedAmount" />
|
|
|
<result column="payment_method" jdbcType="INTEGER" property="paymentMethod" />
|
|
|
<result column="serial_number" jdbcType="VARCHAR" property="serialNumber" />
|
|
|
- <result column="number" jdbcType="VARCHAR" property="number" />
|
|
|
<result column="collection_time" jdbcType="TIMESTAMP" property="collectionTime" />
|
|
|
<result column="created_id" jdbcType="VARCHAR" property="createdId" />
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
|
|
|
@@ -78,8 +79,9 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, customer_management_id, receivable_money, received_amount, payment_method, serial_number,
|
|
|
- number, collection_time, created_id, created_at, updated_at, updated_id
|
|
|
+ id, group_id, disc_id, customer_management_id, receivable_money, received_amount,
|
|
|
+ payment_method, serial_number, collection_time, created_id, created_at, updated_at,
|
|
|
+ updated_id
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
|
remark, file_list
|
|
|
@@ -133,16 +135,18 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.idea.customerManagement.model.IntentionalDeposit">
|
|
|
- insert into intentional_deposit (id, customer_management_id, receivable_money,
|
|
|
+ insert into intentional_deposit (id, group_id, disc_id,
|
|
|
+ customer_management_id, receivable_money,
|
|
|
received_amount, payment_method, serial_number,
|
|
|
- number, collection_time, created_id,
|
|
|
- created_at, updated_at, updated_id,
|
|
|
- remark, file_list)
|
|
|
- values (#{id,jdbcType=VARCHAR}, #{customerManagementId,jdbcType=VARCHAR}, #{receivableMoney,jdbcType=DECIMAL},
|
|
|
+ collection_time, created_id, created_at,
|
|
|
+ updated_at, updated_id, remark,
|
|
|
+ file_list)
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{groupId,jdbcType=VARCHAR}, #{discId,jdbcType=VARCHAR},
|
|
|
+ #{customerManagementId,jdbcType=VARCHAR}, #{receivableMoney,jdbcType=DECIMAL},
|
|
|
#{receivedAmount,jdbcType=DECIMAL}, #{paymentMethod,jdbcType=INTEGER}, #{serialNumber,jdbcType=VARCHAR},
|
|
|
- #{number,jdbcType=VARCHAR}, #{collectionTime,jdbcType=TIMESTAMP}, #{createdId,jdbcType=VARCHAR},
|
|
|
- #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{updatedId,jdbcType=VARCHAR},
|
|
|
- #{remark,jdbcType=LONGVARCHAR}, #{fileList,jdbcType=LONGVARCHAR})
|
|
|
+ #{collectionTime,jdbcType=TIMESTAMP}, #{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.customerManagement.model.IntentionalDeposit">
|
|
|
insert into intentional_deposit
|
|
|
@@ -150,6 +154,12 @@
|
|
|
<if test="id != null">
|
|
|
id,
|
|
|
</if>
|
|
|
+ <if test="groupId != null">
|
|
|
+ group_id,
|
|
|
+ </if>
|
|
|
+ <if test="discId != null">
|
|
|
+ disc_id,
|
|
|
+ </if>
|
|
|
<if test="customerManagementId != null">
|
|
|
customer_management_id,
|
|
|
</if>
|
|
|
@@ -165,9 +175,6 @@
|
|
|
<if test="serialNumber != null">
|
|
|
serial_number,
|
|
|
</if>
|
|
|
- <if test="number != null">
|
|
|
- number,
|
|
|
- </if>
|
|
|
<if test="collectionTime != null">
|
|
|
collection_time,
|
|
|
</if>
|
|
|
@@ -194,6 +201,12 @@
|
|
|
<if test="id != null">
|
|
|
#{id,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="groupId != null">
|
|
|
+ #{groupId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="discId != null">
|
|
|
+ #{discId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="customerManagementId != null">
|
|
|
#{customerManagementId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -209,9 +222,6 @@
|
|
|
<if test="serialNumber != null">
|
|
|
#{serialNumber,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="number != null">
|
|
|
- #{number,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="collectionTime != null">
|
|
|
#{collectionTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
@@ -247,6 +257,12 @@
|
|
|
<if test="record.id != null">
|
|
|
id = #{record.id,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.groupId != null">
|
|
|
+ group_id = #{record.groupId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.discId != null">
|
|
|
+ disc_id = #{record.discId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.customerManagementId != null">
|
|
|
customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -262,9 +278,6 @@
|
|
|
<if test="record.serialNumber != null">
|
|
|
serial_number = #{record.serialNumber,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="record.number != null">
|
|
|
- number = #{record.number,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="record.collectionTime != null">
|
|
|
collection_time = #{record.collectionTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
@@ -294,12 +307,13 @@
|
|
|
<update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
update intentional_deposit
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ group_id = #{record.groupId,jdbcType=VARCHAR},
|
|
|
+ disc_id = #{record.discId,jdbcType=VARCHAR},
|
|
|
customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
receivable_money = #{record.receivableMoney,jdbcType=DECIMAL},
|
|
|
received_amount = #{record.receivedAmount,jdbcType=DECIMAL},
|
|
|
payment_method = #{record.paymentMethod,jdbcType=INTEGER},
|
|
|
serial_number = #{record.serialNumber,jdbcType=VARCHAR},
|
|
|
- number = #{record.number,jdbcType=VARCHAR},
|
|
|
collection_time = #{record.collectionTime,jdbcType=TIMESTAMP},
|
|
|
created_id = #{record.createdId,jdbcType=VARCHAR},
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
@@ -314,12 +328,13 @@
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update intentional_deposit
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ group_id = #{record.groupId,jdbcType=VARCHAR},
|
|
|
+ disc_id = #{record.discId,jdbcType=VARCHAR},
|
|
|
customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
receivable_money = #{record.receivableMoney,jdbcType=DECIMAL},
|
|
|
received_amount = #{record.receivedAmount,jdbcType=DECIMAL},
|
|
|
payment_method = #{record.paymentMethod,jdbcType=INTEGER},
|
|
|
serial_number = #{record.serialNumber,jdbcType=VARCHAR},
|
|
|
- number = #{record.number,jdbcType=VARCHAR},
|
|
|
collection_time = #{record.collectionTime,jdbcType=TIMESTAMP},
|
|
|
created_id = #{record.createdId,jdbcType=VARCHAR},
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
@@ -332,6 +347,12 @@
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.idea.customerManagement.model.IntentionalDeposit">
|
|
|
update intentional_deposit
|
|
|
<set>
|
|
|
+ <if test="groupId != null">
|
|
|
+ group_id = #{groupId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="discId != null">
|
|
|
+ disc_id = #{discId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="customerManagementId != null">
|
|
|
customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -347,9 +368,6 @@
|
|
|
<if test="serialNumber != null">
|
|
|
serial_number = #{serialNumber,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="number != null">
|
|
|
- number = #{number,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="collectionTime != null">
|
|
|
collection_time = #{collectionTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
@@ -376,12 +394,13 @@
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.idea.customerManagement.model.IntentionalDeposit">
|
|
|
update intentional_deposit
|
|
|
- set customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
+ set group_id = #{groupId,jdbcType=VARCHAR},
|
|
|
+ disc_id = #{discId,jdbcType=VARCHAR},
|
|
|
+ customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
receivable_money = #{receivableMoney,jdbcType=DECIMAL},
|
|
|
received_amount = #{receivedAmount,jdbcType=DECIMAL},
|
|
|
payment_method = #{paymentMethod,jdbcType=INTEGER},
|
|
|
serial_number = #{serialNumber,jdbcType=VARCHAR},
|
|
|
- number = #{number,jdbcType=VARCHAR},
|
|
|
collection_time = #{collectionTime,jdbcType=TIMESTAMP},
|
|
|
created_id = #{createdId,jdbcType=VARCHAR},
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
@@ -393,12 +412,13 @@
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.idea.customerManagement.model.IntentionalDeposit">
|
|
|
update intentional_deposit
|
|
|
- set customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
+ set group_id = #{groupId,jdbcType=VARCHAR},
|
|
|
+ disc_id = #{discId,jdbcType=VARCHAR},
|
|
|
+ customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
receivable_money = #{receivableMoney,jdbcType=DECIMAL},
|
|
|
received_amount = #{receivedAmount,jdbcType=DECIMAL},
|
|
|
payment_method = #{paymentMethod,jdbcType=INTEGER},
|
|
|
serial_number = #{serialNumber,jdbcType=VARCHAR},
|
|
|
- number = #{number,jdbcType=VARCHAR},
|
|
|
collection_time = #{collectionTime,jdbcType=TIMESTAMP},
|
|
|
created_id = #{createdId,jdbcType=VARCHAR},
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP},
|