From cc717a7a9817179d6c18a0f085271992f5635ddf Mon Sep 17 00:00:00 2001
From: chengf <2156125618@qq.com>
Date: 星期三, 16 七月 2025 18:15:14 +0800
Subject: [PATCH] 导入房产添加字段、代码优化2025/07/16
---
java110-db/src/main/resources/mapper/community/RoomServiceDaoImplMapper.xml | 38 ++++++++++++++++++++++++++++++++++++--
1 files changed, 36 insertions(+), 2 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/RoomServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/RoomServiceDaoImplMapper.xml
index 95b7b66..adcce31 100755
--- a/java110-db/src/main/resources/mapper/community/RoomServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/RoomServiceDaoImplMapper.xml
@@ -22,6 +22,8 @@
communityId,t.room_type,t.room_type roomType,t.room_sub_type,t.room_rent,t.room_area,t.room_sub_type
roomSubType,
t.room_rent roomRent,t.room_area roomArea
+ t.door_room_num,t.property_type,t.property_address,t.house_certificate_no,
+ t.door_room_num doorRoomNum,t.property_type propertyType,t.property_address propertyAddress,t.house_certificate_no houseCertificateNo
from business_building_room t
where 1 =1
<if test="feeCoefficient !=null and feeCoefficient != ''">
@@ -75,10 +77,10 @@
<insert id="saveRoomInfoInstance" parameterType="Map">
insert into building_room(
fee_coefficient,section,status_cd,remark,user_id,room_id,layer,built_up_area,room_num,unit_id,b_id,apartment,state,community_id,
- room_type,room_sub_type,room_rent,room_area
+ room_type,room_sub_type,room_rent,room_area,door_room_num,property_type,property_address,house_certificate_no
) select
t.fee_coefficient,t.section,'0',t.remark,t.user_id,t.room_id,t.layer,t.built_up_area,t.room_num,t.unit_id,t.b_id,t.apartment,t.state,t.community_id,
- t.room_type,t.room_sub_type,t.room_rent,t.room_area
+ t.room_type,t.room_sub_type,t.room_rent,t.room_area,door_room_num,property_type,property_address,house_certificate_no
from business_building_room t where 1=1
<if test="feeCoefficient !=null and feeCoefficient != ''">
and t.fee_coefficient= #{feeCoefficient}
@@ -123,6 +125,38 @@
<if test="communityId !=null and communityId != ''">
and t.community_id= #{communityId}
</if>
+ <choose>
+ <when test="doorRoomNum != null and doorRoomNum != ''">
+ and t.door_room_num = #{doorRoomNum}
+ </when>
+ <otherwise>
+ and t.door_room_num = ''
+ </otherwise>
+ </choose>
+ <choose>
+ <when test="propertyType != null and propertyType != ''">
+ and t.property_type = #{propertyType}
+ </when>
+ <otherwise>
+ and t.property_type = ''
+ </otherwise>
+ </choose>
+ <choose>
+ <when test="propertyAddress != null and propertyAddress != ''">
+ and t.property_address = #{propertyAddress}
+ </when>
+ <otherwise>
+ and t.property_address = ''
+ </otherwise>
+ </choose>
+ <choose>
+ <when test="houseCertificateNo != null and houseCertificateNo != ''">
+ and t.house_certificate_no = #{houseCertificateNo}
+ </when>
+ <otherwise>
+ and t.house_certificate_no = ''
+ </otherwise>
+ </choose>
</insert>
<!-- 鏌ヨ灏忓尯鎴垮眿淇℃伅 add by wuxw 2018-07-03 -->
--
Gitblit v1.8.0