@@ -69,7 +69,7 @@
) class_data
) AS class_count FROM room
where 1 = 1
- <if test="ids != null">
+ <if test="ids != null and ids.size() > 0">
and id in
<foreach item="roomId" index="index" collection="ids" open="(" close=")" separator=",">
#{roomId}