wangliang 1 年之前
父節點
當前提交
7f55bcb0ce
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      themis-business/src/main/resources/mapper/TEExamStudentMapper.xml

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