Browse Source

sql修改

wangliang 1 year ago
parent
commit
fb49c9bfb0
1 changed files with 3 additions and 3 deletions
  1. 3 3
      themis-business/src/main/resources/mapper/TOeExamRecordMapper.xml

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

@@ -30,7 +30,7 @@
 
     <sql id="invigilatePageMiddle">
         from t_oe_exam_record t
-		left join t_e_exam_student s on t.id = s.current_record_id or s.already_exam_count > 0
+		left join t_e_exam_student s on t.id = s.current_record_id
 		left join t_e_exam tee on tee.id = t.exam_id
 		left join t_e_exam_activity teea on teea.id = t.exam_activity_id
     </sql>
@@ -71,7 +71,7 @@
         <if test="userId != null and userId != ''">
             left join t_b_exam_invigilate_user tbeiu on tbeiu.exam_id = s.exam_id
         </if>
-        left join t_oe_exam_record toer on toer.id = s.current_record_id or s.already_exam_count > 0
+        left join t_oe_exam_record toer on toer.id = s.current_record_id
         WHERE 1 = 1
         <if test="examId != null and examId != ''">
             and s.exam_id = #{examId}
@@ -612,7 +612,7 @@
         teea.id = s.exam_activity_id
         left join t_e_student tes on
         s.student_id = tes.id
-        left join t_oe_exam_record toer on toer.id = s.current_record_id or s.already_exam_count > 0
+        left join t_oe_exam_record toer on toer.id = s.current_record_id
         <if test="userId != null and userId != ''">
             left join t_b_exam_invigilate_user tbeiu on tbeiu.exam_id = s.exam_id
         </if>