java110 пре 5 година
родитељ
комит
985e7c9e31

+ 4 - 1
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>