huangmp há 4 anos atrás
pai
commit
6d039d2674

+ 4 - 1
blade-service/community/src/main/java/org/springblade/community/mapper/RoomMapper.xml

@@ -38,7 +38,10 @@
         select * from community_room where is_deleted = 0
         <if test="room != null">
             <if test="room.floorId != null">
-             AND   floor_id = #{room.floorId}
+                AND floor_id = #{room.floorId}
+            </if>
+            <if test="room.id != null">
+                AND id = #{room.id}
             </if>
         </if>