From c1413aeb9fe5d736af38e25285ac8d88074a89bf Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期五, 28 二月 2025 01:01:23 +0800
Subject: [PATCH] 开发完成运营房屋查询
---
java110-db/src/main/resources/mapper/user/OwnerRoomRelV1ServiceDaoImplMapper.xml | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/user/OwnerRoomRelV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/OwnerRoomRelV1ServiceDaoImplMapper.xml
index 1bb23cb..e417fc3 100644
--- a/java110-db/src/main/resources/mapper/user/OwnerRoomRelV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/OwnerRoomRelV1ServiceDaoImplMapper.xml
@@ -19,8 +19,12 @@
inner join building_room br on t.room_id = br.room_id and br.status_cd = '0'
inner join building_unit bu on br.unit_id = bu.unit_id and bu.status_cd = '0'
inner join f_floor fl on bu.floor_id = fl.floor_id and fl.status_cd = '0'
+ where 1 =1
<if test="ownerNameLike !=null and ownerNameLike != ''">
and bo.`name` like concat('%',#{ownerNameLike},'%')
+ </if>
+ <if test="link !=null and link != ''">
+ and bo.`link` = #{link}
</if>
<if test="relId !=null and relId != ''">
and t.rel_id= #{relId}
@@ -103,6 +107,12 @@
inner join building_unit bu on br.unit_id = bu.unit_id and bu.status_cd = '0'
inner join f_floor fl on bu.floor_id = fl.floor_id and fl.status_cd = '0'
where 1 =1
+ <if test="ownerNameLike !=null and ownerNameLike != ''">
+ and bo.`name` like concat('%',#{ownerNameLike},'%')
+ </if>
+ <if test="link !=null and link != ''">
+ and bo.`link` = #{link}
+ </if>
<if test="relId !=null and relId != ''">
and t.rel_id= #{relId}
</if>
--
Gitblit v1.8.0