소스 검색

代码修改

wangliang 1 년 전
부모
커밋
525def4c85
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      themis-business/src/main/resources/mapper/TEExamStudentMapper.xml

+ 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>