wangliang 1 жил өмнө
parent
commit
525def4c85

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

@@ -500,8 +500,7 @@
             <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')
-            or (toer.id is not null and toer.status in ('FIRST_PREPARE', 'JUNK') and toer.client_websocket_status is null))
+            and (toer.status in ('FIRST_PREPARE', 'JUNK') or (toer.client_websocket_status = 'OFF_LINE' or toer.client_websocket_status is null or toer.id is null))
             and t.already_exam_count = 0
         </where>
     </select>