|
@@ -826,17 +826,32 @@
|
|
) temp
|
|
) temp
|
|
left join t_oe_exam_record toer on
|
|
left join t_oe_exam_record toer on
|
|
toer.exam_student_id = temp.examStudentId
|
|
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'">
|
|
<!--<if test="status != null and status != '' and status == 'UN_FINISH'">
|
|
and (toer.first_start_time is null or toer.first_prepare_time is null)
|
|
and (toer.first_start_time is null or toer.first_prepare_time is null)
|
|
</if>-->
|
|
</if>-->
|