wangliang 1 rok temu
rodzic
commit
7f55bcb0ce

+ 3 - 1
themis-business/src/main/resources/mapper/TEExamStudentMapper.xml

@@ -500,7 +500,9 @@
             <if test="roomCode != null and roomCode != ''">
                 and t.room_code = #{roomCode}
             </if>
-            and (toer.id is null or (toer.status in ('FIRST_PREPARE', 'JUNK') and toer.client_websocket_status = 'OFF_LINE' and t.already_exam_count = 0))
+            and (toer.id is null or (toer.status in ('FIRST_PREPARE', 'JUNK') and toer.client_websocket_status = 'OFF_LINE')
+            or (toer.id is not null and toer.status in ('FIRST_PREPARE', 'JUNK') and toer.client_websocket_status is null))
+            and t.already_exam_count = 0
         </where>
     </select>