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

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

@@ -16,7 +16,9 @@
         left join t_b_exam_invigilate_user tbeiu on
         left join t_b_exam_invigilate_user tbeiu on
             tbeiu.exam_id = tieic.exam_id
             tbeiu.exam_id = tieic.exam_id
         and tbeiu.room_code = tees.room_code
         and tbeiu.room_code = tees.room_code
-        <where>
+        left join t_oe_exam_record toer on
+            toer.id = tieic.exam_record_id
+        <where> 1 = 1
             <if test="examId != null and examId != ''">
             <if test="examId != null and examId != ''">
                 and tieic.exam_id = #{examId}
                 and tieic.exam_id = #{examId}
             </if>
             </if>
@@ -33,6 +35,7 @@
                 and tieic.call_status = #{callStatus}
                 and tieic.call_status = #{callStatus}
             </if>
             </if>
         </where>
         </where>
+        and (toer.status <![CDATA[ <> ]]> 'FINISHED' and toer.status <![CDATA[ <> ]]> 'PERSISTED')
     </select>
     </select>
 
 
     <select id="examInvigilateCallQueryCount" resultType="java.lang.Integer">
     <select id="examInvigilateCallQueryCount" resultType="java.lang.Integer">