Răsfoiți Sursa

监考考试批次查询

wangliang 1 an în urmă
părinte
comite
cb8c35f5d5

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

@@ -295,9 +295,8 @@
             left join t_b_exam_invigilate_user tbeiu on tbeiu.exam_id = tees.exam_id
         </if>
         <where> 1 = 1
-            and tee.monitor_status <![CDATA[ <> ]]> 'FINISHED'
             <if test="examId != null and examId != ''">
-                and toer.exam_id = #{examId}
+                and tees.exam_id = #{examId}
             </if>
             <if test="userId != null and userId != ''">
                 and tbeiu.user_id = #{userId}
@@ -338,6 +337,7 @@
             <if test="maxExceptionCount != null and maxExceptionCount != '' or maxExceptionCount == 0">
                 and toer.exception_count &lt;= #{maxExceptionCount}
             </if>
+            and tee.monitor_status <![CDATA[ <> ]]> 'FINISHED'
         </where>
         order by tiiwi.approve_status,CAST(teea.code AS UNSIGNED),CAST(tees.room_code AS UNSIGNED)
     </select>
@@ -438,7 +438,7 @@
         </if>
         <where>1 = 1
             <if test="examId != null and examId != ''">
-                and t.exam_id = #{examId}
+                and tees.exam_id = #{examId}
             </if>
             <if test="userId != null and userId != ''">
                 and tbeiu.user_id = #{userId}
@@ -517,7 +517,7 @@
         </if>
         <where>1 = 1
             <if test="examId != null and examId != ''">
-                and t.exam_id = #{examId}
+                and tees.exam_id = #{examId}
             </if>
             <if test="userId != null and userId != ''">
                 and tbeiu.user_id = #{userId}