From b88a288f4f787b509463678e3cd9ccfa3f37014b Mon Sep 17 00:00:00 2001
From: chengf <cgf12138@163.com>
Date: 星期三, 11 三月 2026 12:01:05 +0800
Subject: [PATCH] 导入测试
---
java110-db/src/main/resources/mapper/community/RoomV1ServiceDaoImplMapper.xml | 74 ++++++++++++++++++++++++++++++++-----
1 files changed, 64 insertions(+), 10 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/RoomV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/RoomV1ServiceDaoImplMapper.xml
index 067d7d6..d17ade7 100644
--- a/java110-db/src/main/resources/mapper/community/RoomV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/RoomV1ServiceDaoImplMapper.xml
@@ -8,9 +8,13 @@
<!-- 淇濆瓨鎴垮眿淇℃伅 add by wuxw 2018-07-03 -->
<insert id="saveRoomInfo" parameterType="Map">
insert into building_room(
- section,remark,room_sub_type,room_area,user_id,room_id,layer,fee_coefficient,built_up_area,room_num,unit_id,state,community_id,apartment,room_type,room_rent
+ section,remark,room_sub_type,room_area,user_id,room_id,layer,fee_coefficient,built_up_area,
+ room_num,unit_id,state,community_id,apartment,room_type,room_rent,door_room_num,property_type,property_address,house_certificate_no,
+ road_name, buy_date, sell_date, sell_state, room_buyer, eoc, monthly_unit_price, property_fee_month
) values (
- #{section},#{remark},#{roomSubType},#{roomArea},#{userId},#{roomId},#{layer},#{feeCoefficient},#{builtUpArea},#{roomNum},#{unitId},#{state},#{communityId},#{apartment},#{roomType},#{roomRent}
+ #{section},#{remark},#{roomSubType},#{roomArea},#{userId},#{roomId},#{layer},#{feeCoefficient},#{builtUpArea},#{roomNum},#{unitId},#{state},
+ #{communityId},#{apartment},#{roomType},#{roomRent},#{doorRoomNum},#{propertyType},#{propertyAddress},#{houseCertificateNo},
+ #{roadName},#{buyDate},#{sellDate},#{sellState},#{roomBuyer},#{eoc},#{monthlyUnitPrice},#{propertyFeeMonth}
)
</insert>
@@ -20,11 +24,12 @@
select t.section,t.remark,t.status_cd,t.status_cd statusCd,t.room_sub_type,t.room_sub_type
roomSubType,t.room_area,t.room_area roomArea,t.user_id,t.user_id userId,t.room_id,t.room_id
roomId,t.layer,t.fee_coefficient,t.fee_coefficient feeCoefficient,t.built_up_area,t.built_up_area
- builtUpArea,t.room_num,t.room_num roomNum,t.unit_id,t.unit_id unitId,t.state,t.community_id,t.community_id
- communityId,t.apartment,t.room_type,t.room_type roomType,t.room_rent,t.room_rent roomRent,f.floor_num floorNum,bu.unit_num unitNum
+ builtUpArea,t.room_num,t.room_num roomNum,t.unit_id,t.unit_id unitId,t.state,td.name stateName,t.community_id,t.community_id
+ communityId,t.apartment,t.room_type,t.room_type roomType,t.room_rent,t.room_rent roomRent,f.floor_num floorNum,f.floor_id floorId,bu.unit_num unitNum
from building_room t
left join building_unit bu on t.unit_id = bu.unit_id and bu.status_cd = '0'
left join f_floor f on bu.floor_id = f.floor_id and f.status_cd = '0'
+ left join t_dict td on t.state = td.status_cd and td.table_name = 'building_room' and td.table_columns = 'state'
where 1 =1
<if test="section !=null and section != ''">
and t.section= #{section}
@@ -37,6 +42,21 @@
</if>
<if test="floorId !=null and floorId != ''">
and f.floor_id= #{floorId}
+ </if>
+ <if test="doorRoomNum !=null and doorRoomNum != ''">
+ and t.door_room_num= #{doorRoomNum}
+ </if>
+ <if test="propertyType !=null and propertyType != ''">
+ and t.property_type= #{propertyType}
+ </if>
+ <if test="propertyAddress !=null and propertyAddress != ''">
+ and t.property_address= #{propertyAddress}
+ </if>
+ <if test="floorNum !=null and floorNum != ''">
+ and f.`floor_num`= #{floorNum}
+ </if>
+ <if test="unitNum !=null and unitNum != ''">
+ and bu.unit_num= #{unitNum}
</if>
<if test="floorIds !=null ">
and f.floor_id in
@@ -53,11 +73,17 @@
<if test="roomArea !=null and roomArea != ''">
and t.room_area= #{roomArea}
</if>
- <if test="userId !=null and userId != ''">
- and t.user_id= #{userId}
+ <if test="communityId !=null and communityId != ''">
+ and t.community_id= #{communityId}
</if>
<if test="roomId !=null and roomId != ''">
and t.room_id= #{roomId}
+ </if>
+ <if test="roomIds != null">
+ and t.room_id in
+ <foreach collection="roomIds" item="item" open="(" close=")" separator=",">
+ #{item}
+ </foreach>
</if>
<if test="layer !=null and layer != ''">
and t.layer= #{layer}
@@ -71,15 +97,16 @@
<if test="roomNum !=null and roomNum != ''">
and t.room_num= #{roomNum}
</if>
+ <if test="roomNumLike !=null and roomNumLike != ''">
+ and t.room_num like concat('%',#{roomNumLike},'%')
+ </if>
<if test="unitId !=null and unitId != ''">
and t.unit_id= #{unitId}
</if>
<if test="state !=null and state != ''">
and t.state= #{state}
</if>
- <if test="communityId !=null and communityId != ''">
- and t.community_id= #{communityId}
- </if>
+
<if test="apartment !=null and apartment != ''">
and t.apartment= #{apartment}
</if>
@@ -89,7 +116,7 @@
<if test="roomRent !=null and roomRent != ''">
and t.room_rent= #{roomRent}
</if>
- order by t.create_time desc
+ order by f.floor_num,bu.unit_num,CONVERT(t.room_num, UNSIGNED)
<if test="page != -1 and page != null ">
limit #{page}, #{row}
</if>
@@ -148,6 +175,18 @@
<if test="roomRent !=null and roomRent != ''">
, t.room_rent= #{roomRent}
</if>
+ <if test="roomRent !=null and roomRent != ''">
+ , t.door_room_num= #{doorRoomNum}
+ </if>
+ <if test="roomRent !=null and roomRent != ''">
+ , t.property_type= #{propertyType}
+ </if>
+ <if test="roomRent !=null and roomRent != ''">
+ , t.property_address= #{propertyAddress}
+ </if>
+ <if test="roomRent !=null and roomRent != ''">
+ , t.house_certificate_no= #{houseCertificateNo}
+ </if>
where 1=1
<if test="roomId !=null and roomId != ''">
and t.room_id= #{roomId}
@@ -167,6 +206,12 @@
</if>
<if test="floorId !=null and floorId != ''">
and f.floor_id= #{floorId}
+ </if>
+ <if test="floorNum !=null and floorNum != ''">
+ and f.`floor_num`= #{floorNum}
+ </if>
+ <if test="unitNum !=null and unitNum != ''">
+ and u.unit_num= #{unitNum}
</if>
<if test="floorIds !=null ">
and f.floor_id in
@@ -195,6 +240,12 @@
<if test="roomId !=null and roomId != ''">
and t.room_id= #{roomId}
</if>
+ <if test="roomIds != null">
+ and t.room_id in
+ <foreach collection="roomIds" item="item" open="(" close=")" separator=",">
+ #{item}
+ </foreach>
+ </if>
<if test="layer !=null and layer != ''">
and t.layer= #{layer}
</if>
@@ -207,6 +258,9 @@
<if test="roomNum !=null and roomNum != ''">
and t.room_num= #{roomNum}
</if>
+ <if test="roomNumLike !=null and roomNumLike != ''">
+ and t.room_num like concat('%',#{roomNumLike},'%')
+ </if>
<if test="unitId !=null and unitId != ''">
and t.unit_id= #{unitId}
</if>
--
Gitblit v1.8.0