소스 검색

监考明细过滤JUNK状态

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

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

@@ -826,17 +826,32 @@
         ) temp
         left join t_oe_exam_record toer on
         toer.exam_student_id = temp.examStudentId
-        <where>1 = 1
-            <if test="status != null and status != '' and status != 'UN_FINISH'">
-                <choose>
-                    <when test="status == 'EXAMING'">
-                        and (toer.status = 'ANSWERING' or toer.status = 'RESUME_PREPARE' or toer.status = 'BREAK_OFF')
-                    </when>
-                    <otherwise>
-                        and toer.status = #{status}
-                    </otherwise>
-                </choose>
-            </if>
+        <where> 1 = 1
+            <choose>
+                <when test="status == null">
+                    and toer.status <![CDATA[ <> ]]> 'JUNK'
+                </when>
+                <when test="status != null and status != '' and status != 'UN_FINISH'">
+                    <choose>
+                        <when test="status == 'EXAMING'">
+                            and (toer.status = 'ANSWERING' or toer.status = 'RESUME_PREPARE' or toer.status = 'BREAK_OFF')
+                        </when>
+                        <otherwise>
+                            and toer.status = #{status}
+                        </otherwise>
+                    </choose>
+                </when>
+            </choose>
+<!--            <if test="status != null and status != '' and status != 'UN_FINISH'">-->
+<!--                <choose>-->
+<!--                    <when test="status == 'EXAMING'">-->
+<!--                        and (toer.status = 'ANSWERING' or toer.status = 'RESUME_PREPARE' or toer.status = 'BREAK_OFF')-->
+<!--                    </when>-->
+<!--                    <otherwise>-->
+<!--                        and toer.status = #{status}-->
+<!--                    </otherwise>-->
+<!--                </choose>-->
+<!--            </if>-->
             <!--<if test="status != null and status != '' and status == 'UN_FINISH'">
                 and (toer.first_start_time is null or toer.first_prepare_time is null)
             </if>-->