소스 검색

解决报错

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}