From 576c52d8d8e6fb1e738380cc5fc101a6a2b0b3a8 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期六, 04 九月 2021 16:00:57 +0800
Subject: [PATCH] Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity
---
java110-db/src/main/resources/mapper/community/FloorServiceDaoImplMapper.xml | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/FloorServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/FloorServiceDaoImplMapper.xml
old mode 100644
new mode 100755
index 0c43572..3693f6e
--- a/java110-db/src/main/resources/mapper/community/FloorServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/FloorServiceDaoImplMapper.xml
@@ -154,7 +154,10 @@
COUNT(1) count
FROM
f_floor f
- where f.`community_id` = #{communityId}
+ where 1=1
+ <if test="communityId !=null and communityId != ''">
+ and f.`community_id` = #{communityId}
+ </if>
<if test="floorId !=null and floorId != ''">
and f.floor_id= #{floorId}
</if>
@@ -199,7 +202,10 @@
f.floor_area floorArea
FROM
f_floor f
- where f.`community_id` = #{communityId}
+ where 1=1
+ <if test="communityId !=null and communityId != ''">
+ and f.`community_id` = #{communityId}
+ </if>
<if test="floorId !=null and floorId != ''">
and f.floor_id= #{floorId}
</if>
--
Gitblit v1.8.0