瀏覽代碼

解决报错

dzx 1 年之前
父節點
當前提交
1a6135541f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/resources/mapper/room/RoomMapper.xml

+ 1 - 1
src/main/resources/mapper/room/RoomMapper.xml

@@ -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}