|
@@ -8,11 +8,13 @@
|
|
|
<result column="disc_id" jdbcType="VARCHAR" property="discId" />
|
|
|
<result column="build_id" jdbcType="VARCHAR" property="buildId" />
|
|
|
<result column="house_id" jdbcType="VARCHAR" property="houseId" />
|
|
|
+ <result column="deposit_number" jdbcType="VARCHAR" property="depositNumber" />
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
<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="collection_id" jdbcType="VARCHAR" property="collectionId" />
|
|
|
<result column="collection_time" jdbcType="TIMESTAMP" property="collectionTime" />
|
|
|
<result column="created_id" jdbcType="VARCHAR" property="createdId" />
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
|
|
@@ -82,9 +84,9 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, customer_management_id, group_id, disc_id, build_id, house_id, status, receivable_money,
|
|
|
- received_amount, payment_method, serial_number, collection_time, created_id, created_at,
|
|
|
- updated_at, updated_id
|
|
|
+ id, customer_management_id, group_id, disc_id, build_id, house_id, deposit_number,
|
|
|
+ status, receivable_money, received_amount, payment_method, serial_number, collection_id,
|
|
|
+ collection_time, created_id, created_at, updated_at, updated_id
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
|
remark, file_list
|
|
@@ -120,7 +122,7 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
|
|
- select
|
|
|
+ select
|
|
|
<include refid="Base_Column_List" />
|
|
|
,
|
|
|
<include refid="Blob_Column_List" />
|
|
@@ -138,20 +140,20 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.idea.customerManagement.model.RoomSelectionInfo">
|
|
|
- insert into room_selection_info (id, customer_management_id, group_id,
|
|
|
- disc_id, build_id, house_id,
|
|
|
- status, receivable_money, received_amount,
|
|
|
- payment_method, serial_number, collection_time,
|
|
|
- created_id, created_at, updated_at,
|
|
|
- updated_id, remark, file_list
|
|
|
- )
|
|
|
- values (#{id,jdbcType=VARCHAR}, #{customerManagementId,jdbcType=VARCHAR}, #{groupId,jdbcType=VARCHAR},
|
|
|
- #{discId,jdbcType=VARCHAR}, #{buildId,jdbcType=VARCHAR}, #{houseId,jdbcType=VARCHAR},
|
|
|
- #{status,jdbcType=INTEGER}, #{receivableMoney,jdbcType=DECIMAL}, #{receivedAmount,jdbcType=DECIMAL},
|
|
|
- #{paymentMethod,jdbcType=INTEGER}, #{serialNumber,jdbcType=VARCHAR}, #{collectionTime,jdbcType=TIMESTAMP},
|
|
|
- #{createdId,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
- #{updatedId,jdbcType=VARCHAR}, #{remark,jdbcType=LONGVARCHAR}, #{fileList,jdbcType=LONGVARCHAR}
|
|
|
- )
|
|
|
+ insert into room_selection_info (id, customer_management_id, group_id,
|
|
|
+ disc_id, build_id, house_id,
|
|
|
+ deposit_number, status, receivable_money,
|
|
|
+ received_amount, payment_method, serial_number,
|
|
|
+ collection_id, collection_time, created_id,
|
|
|
+ created_at, updated_at, updated_id,
|
|
|
+ remark, file_list)
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{customerManagementId,jdbcType=VARCHAR}, #{groupId,jdbcType=VARCHAR},
|
|
|
+ #{discId,jdbcType=VARCHAR}, #{buildId,jdbcType=VARCHAR}, #{houseId,jdbcType=VARCHAR},
|
|
|
+ #{depositNumber,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{receivableMoney,jdbcType=DECIMAL},
|
|
|
+ #{receivedAmount,jdbcType=DECIMAL}, #{paymentMethod,jdbcType=INTEGER}, #{serialNumber,jdbcType=VARCHAR},
|
|
|
+ #{collectionId,jdbcType=VARCHAR}, #{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.RoomSelectionInfo">
|
|
|
insert into room_selection_info
|
|
@@ -174,6 +176,9 @@
|
|
|
<if test="houseId != null">
|
|
|
house_id,
|
|
|
</if>
|
|
|
+ <if test="depositNumber != null">
|
|
|
+ deposit_number,
|
|
|
+ </if>
|
|
|
<if test="status != null">
|
|
|
status,
|
|
|
</if>
|
|
@@ -189,6 +194,9 @@
|
|
|
<if test="serialNumber != null">
|
|
|
serial_number,
|
|
|
</if>
|
|
|
+ <if test="collectionId != null">
|
|
|
+ collection_id,
|
|
|
+ </if>
|
|
|
<if test="collectionTime != null">
|
|
|
collection_time,
|
|
|
</if>
|
|
@@ -230,6 +238,9 @@
|
|
|
<if test="houseId != null">
|
|
|
#{houseId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="depositNumber != null">
|
|
|
+ #{depositNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="status != null">
|
|
|
#{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -245,6 +256,9 @@
|
|
|
<if test="serialNumber != null">
|
|
|
#{serialNumber,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="collectionId != null">
|
|
|
+ #{collectionId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="collectionTime != null">
|
|
|
#{collectionTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -295,6 +309,9 @@
|
|
|
<if test="record.houseId != null">
|
|
|
house_id = #{record.houseId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.depositNumber != null">
|
|
|
+ deposit_number = #{record.depositNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.status != null">
|
|
|
status = #{record.status,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -310,6 +327,9 @@
|
|
|
<if test="record.serialNumber != null">
|
|
|
serial_number = #{record.serialNumber,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.collectionId != null">
|
|
|
+ collection_id = #{record.collectionId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.collectionTime != null">
|
|
|
collection_time = #{record.collectionTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -339,23 +359,25 @@
|
|
|
<update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
update room_selection_info
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
- customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
- group_id = #{record.groupId,jdbcType=VARCHAR},
|
|
|
- disc_id = #{record.discId,jdbcType=VARCHAR},
|
|
|
- build_id = #{record.buildId,jdbcType=VARCHAR},
|
|
|
- house_id = #{record.houseId,jdbcType=VARCHAR},
|
|
|
- status = #{record.status,jdbcType=INTEGER},
|
|
|
- receivable_money = #{record.receivableMoney,jdbcType=DECIMAL},
|
|
|
- received_amount = #{record.receivedAmount,jdbcType=DECIMAL},
|
|
|
- payment_method = #{record.paymentMethod,jdbcType=INTEGER},
|
|
|
- serial_number = #{record.serialNumber,jdbcType=VARCHAR},
|
|
|
- collection_time = #{record.collectionTime,jdbcType=TIMESTAMP},
|
|
|
- created_id = #{record.createdId,jdbcType=VARCHAR},
|
|
|
- created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
- updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
|
- updated_id = #{record.updatedId,jdbcType=VARCHAR},
|
|
|
- remark = #{record.remark,jdbcType=LONGVARCHAR},
|
|
|
- file_list = #{record.fileList,jdbcType=LONGVARCHAR}
|
|
|
+ customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
+ group_id = #{record.groupId,jdbcType=VARCHAR},
|
|
|
+ disc_id = #{record.discId,jdbcType=VARCHAR},
|
|
|
+ build_id = #{record.buildId,jdbcType=VARCHAR},
|
|
|
+ house_id = #{record.houseId,jdbcType=VARCHAR},
|
|
|
+ deposit_number = #{record.depositNumber,jdbcType=VARCHAR},
|
|
|
+ status = #{record.status,jdbcType=INTEGER},
|
|
|
+ receivable_money = #{record.receivableMoney,jdbcType=DECIMAL},
|
|
|
+ received_amount = #{record.receivedAmount,jdbcType=DECIMAL},
|
|
|
+ payment_method = #{record.paymentMethod,jdbcType=INTEGER},
|
|
|
+ serial_number = #{record.serialNumber,jdbcType=VARCHAR},
|
|
|
+ collection_id = #{record.collectionId,jdbcType=VARCHAR},
|
|
|
+ collection_time = #{record.collectionTime,jdbcType=TIMESTAMP},
|
|
|
+ created_id = #{record.createdId,jdbcType=VARCHAR},
|
|
|
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_id = #{record.updatedId,jdbcType=VARCHAR},
|
|
|
+ remark = #{record.remark,jdbcType=LONGVARCHAR},
|
|
|
+ file_list = #{record.fileList,jdbcType=LONGVARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -363,21 +385,23 @@
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update room_selection_info
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
- customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
- group_id = #{record.groupId,jdbcType=VARCHAR},
|
|
|
- disc_id = #{record.discId,jdbcType=VARCHAR},
|
|
|
- build_id = #{record.buildId,jdbcType=VARCHAR},
|
|
|
- house_id = #{record.houseId,jdbcType=VARCHAR},
|
|
|
- status = #{record.status,jdbcType=INTEGER},
|
|
|
- receivable_money = #{record.receivableMoney,jdbcType=DECIMAL},
|
|
|
- received_amount = #{record.receivedAmount,jdbcType=DECIMAL},
|
|
|
- payment_method = #{record.paymentMethod,jdbcType=INTEGER},
|
|
|
- serial_number = #{record.serialNumber,jdbcType=VARCHAR},
|
|
|
- collection_time = #{record.collectionTime,jdbcType=TIMESTAMP},
|
|
|
- created_id = #{record.createdId,jdbcType=VARCHAR},
|
|
|
- created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
- updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
|
- updated_id = #{record.updatedId,jdbcType=VARCHAR}
|
|
|
+ customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
+ group_id = #{record.groupId,jdbcType=VARCHAR},
|
|
|
+ disc_id = #{record.discId,jdbcType=VARCHAR},
|
|
|
+ build_id = #{record.buildId,jdbcType=VARCHAR},
|
|
|
+ house_id = #{record.houseId,jdbcType=VARCHAR},
|
|
|
+ deposit_number = #{record.depositNumber,jdbcType=VARCHAR},
|
|
|
+ status = #{record.status,jdbcType=INTEGER},
|
|
|
+ receivable_money = #{record.receivableMoney,jdbcType=DECIMAL},
|
|
|
+ received_amount = #{record.receivedAmount,jdbcType=DECIMAL},
|
|
|
+ payment_method = #{record.paymentMethod,jdbcType=INTEGER},
|
|
|
+ serial_number = #{record.serialNumber,jdbcType=VARCHAR},
|
|
|
+ collection_id = #{record.collectionId,jdbcType=VARCHAR},
|
|
|
+ collection_time = #{record.collectionTime,jdbcType=TIMESTAMP},
|
|
|
+ created_id = #{record.createdId,jdbcType=VARCHAR},
|
|
|
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_id = #{record.updatedId,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -400,6 +424,9 @@
|
|
|
<if test="houseId != null">
|
|
|
house_id = #{houseId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="depositNumber != null">
|
|
|
+ deposit_number = #{depositNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="status != null">
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -415,6 +442,9 @@
|
|
|
<if test="serialNumber != null">
|
|
|
serial_number = #{serialNumber,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="collectionId != null">
|
|
|
+ collection_id = #{collectionId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="collectionTime != null">
|
|
|
collection_time = #{collectionTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
@@ -442,41 +472,45 @@
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.idea.customerManagement.model.RoomSelectionInfo">
|
|
|
update room_selection_info
|
|
|
set customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
- group_id = #{groupId,jdbcType=VARCHAR},
|
|
|
- disc_id = #{discId,jdbcType=VARCHAR},
|
|
|
- build_id = #{buildId,jdbcType=VARCHAR},
|
|
|
- house_id = #{houseId,jdbcType=VARCHAR},
|
|
|
- status = #{status,jdbcType=INTEGER},
|
|
|
- receivable_money = #{receivableMoney,jdbcType=DECIMAL},
|
|
|
- received_amount = #{receivedAmount,jdbcType=DECIMAL},
|
|
|
- payment_method = #{paymentMethod,jdbcType=INTEGER},
|
|
|
- serial_number = #{serialNumber,jdbcType=VARCHAR},
|
|
|
- collection_time = #{collectionTime,jdbcType=TIMESTAMP},
|
|
|
- created_id = #{createdId,jdbcType=VARCHAR},
|
|
|
- created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
- updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
- updated_id = #{updatedId,jdbcType=VARCHAR},
|
|
|
- remark = #{remark,jdbcType=LONGVARCHAR},
|
|
|
- file_list = #{fileList,jdbcType=LONGVARCHAR}
|
|
|
+ group_id = #{groupId,jdbcType=VARCHAR},
|
|
|
+ disc_id = #{discId,jdbcType=VARCHAR},
|
|
|
+ build_id = #{buildId,jdbcType=VARCHAR},
|
|
|
+ house_id = #{houseId,jdbcType=VARCHAR},
|
|
|
+ deposit_number = #{depositNumber,jdbcType=VARCHAR},
|
|
|
+ status = #{status,jdbcType=INTEGER},
|
|
|
+ receivable_money = #{receivableMoney,jdbcType=DECIMAL},
|
|
|
+ received_amount = #{receivedAmount,jdbcType=DECIMAL},
|
|
|
+ payment_method = #{paymentMethod,jdbcType=INTEGER},
|
|
|
+ serial_number = #{serialNumber,jdbcType=VARCHAR},
|
|
|
+ collection_id = #{collectionId,jdbcType=VARCHAR},
|
|
|
+ collection_time = #{collectionTime,jdbcType=TIMESTAMP},
|
|
|
+ created_id = #{createdId,jdbcType=VARCHAR},
|
|
|
+ created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_id = #{updatedId,jdbcType=VARCHAR},
|
|
|
+ remark = #{remark,jdbcType=LONGVARCHAR},
|
|
|
+ file_list = #{fileList,jdbcType=LONGVARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.idea.customerManagement.model.RoomSelectionInfo">
|
|
|
update room_selection_info
|
|
|
set customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
- group_id = #{groupId,jdbcType=VARCHAR},
|
|
|
- disc_id = #{discId,jdbcType=VARCHAR},
|
|
|
- build_id = #{buildId,jdbcType=VARCHAR},
|
|
|
- house_id = #{houseId,jdbcType=VARCHAR},
|
|
|
- status = #{status,jdbcType=INTEGER},
|
|
|
- receivable_money = #{receivableMoney,jdbcType=DECIMAL},
|
|
|
- received_amount = #{receivedAmount,jdbcType=DECIMAL},
|
|
|
- payment_method = #{paymentMethod,jdbcType=INTEGER},
|
|
|
- serial_number = #{serialNumber,jdbcType=VARCHAR},
|
|
|
- collection_time = #{collectionTime,jdbcType=TIMESTAMP},
|
|
|
- created_id = #{createdId,jdbcType=VARCHAR},
|
|
|
- created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
- updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
- updated_id = #{updatedId,jdbcType=VARCHAR}
|
|
|
+ group_id = #{groupId,jdbcType=VARCHAR},
|
|
|
+ disc_id = #{discId,jdbcType=VARCHAR},
|
|
|
+ build_id = #{buildId,jdbcType=VARCHAR},
|
|
|
+ house_id = #{houseId,jdbcType=VARCHAR},
|
|
|
+ deposit_number = #{depositNumber,jdbcType=VARCHAR},
|
|
|
+ status = #{status,jdbcType=INTEGER},
|
|
|
+ receivable_money = #{receivableMoney,jdbcType=DECIMAL},
|
|
|
+ received_amount = #{receivedAmount,jdbcType=DECIMAL},
|
|
|
+ payment_method = #{paymentMethod,jdbcType=INTEGER},
|
|
|
+ serial_number = #{serialNumber,jdbcType=VARCHAR},
|
|
|
+ collection_id = #{collectionId,jdbcType=VARCHAR},
|
|
|
+ collection_time = #{collectionTime,jdbcType=TIMESTAMP},
|
|
|
+ created_id = #{createdId,jdbcType=VARCHAR},
|
|
|
+ created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_id = #{updatedId,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
</mapper>
|