|
@@ -285,10 +285,10 @@
|
|
t_oe_exam_record toer
|
|
t_oe_exam_record toer
|
|
where
|
|
where
|
|
s.id = toer.exam_student_id
|
|
s.id = toer.exam_student_id
|
|
- <if test="status != null and status != '' and status == 'UN_FINISH'">
|
|
|
|
|
|
+ <!--<if test="status != null and status != '' and status == 'UN_FINISH'">
|
|
and (toer.STATUS = 'FINISHED' or toer.STATUS = 'PERSISTED')
|
|
and (toer.STATUS = 'FINISHED' or toer.STATUS = 'PERSISTED')
|
|
and toer.first_start_time is not null
|
|
and toer.first_start_time is not null
|
|
- </if>
|
|
|
|
|
|
+ </if>-->
|
|
)
|
|
)
|
|
<if test="examId != null and examId != ''">
|
|
<if test="examId != null and examId != ''">
|
|
and s.exam_id = #{examId}
|
|
and s.exam_id = #{examId}
|
|
@@ -328,9 +328,9 @@
|
|
</otherwise>
|
|
</otherwise>
|
|
</choose>
|
|
</choose>
|
|
</if>
|
|
</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>-->
|
|
<if test="maxWarningCount != null and maxWarningCount != '' or maxWarningCount == 0">
|
|
<if test="maxWarningCount != null and maxWarningCount != '' or maxWarningCount == 0">
|
|
and toer.warning_count <= #{maxWarningCount}
|
|
and toer.warning_count <= #{maxWarningCount}
|
|
</if>
|
|
</if>
|
|
@@ -439,10 +439,10 @@
|
|
t_oe_exam_record toer
|
|
t_oe_exam_record toer
|
|
where
|
|
where
|
|
s.id = toer.exam_student_id
|
|
s.id = toer.exam_student_id
|
|
- <if test="status != null and status != '' and status == 'UN_FINISH'">
|
|
|
|
|
|
+ <!--<if test="status != null and status != '' and status == 'UN_FINISH'">
|
|
and (toer.STATUS = 'FINISHED' or toer.STATUS = 'PERSISTED')
|
|
and (toer.STATUS = 'FINISHED' or toer.STATUS = 'PERSISTED')
|
|
and toer.first_start_time is not null
|
|
and toer.first_start_time is not null
|
|
- </if>
|
|
|
|
|
|
+ </if>-->
|
|
)
|
|
)
|
|
<if test="examId != null and examId != ''">
|
|
<if test="examId != null and examId != ''">
|
|
and s.exam_id = #{examId}
|
|
and s.exam_id = #{examId}
|
|
@@ -482,9 +482,9 @@
|
|
</otherwise>
|
|
</otherwise>
|
|
</choose>
|
|
</choose>
|
|
</if>
|
|
</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>-->
|
|
<if test="maxWarningCount != null and maxWarningCount != '' or maxWarningCount == 0">
|
|
<if test="maxWarningCount != null and maxWarningCount != '' or maxWarningCount == 0">
|
|
and toer.warning_count <= #{maxWarningCount}
|
|
and toer.warning_count <= #{maxWarningCount}
|
|
</if>
|
|
</if>
|
|
@@ -837,10 +837,10 @@
|
|
t_oe_exam_record toer
|
|
t_oe_exam_record toer
|
|
where
|
|
where
|
|
s.id = toer.exam_student_id
|
|
s.id = toer.exam_student_id
|
|
- <if test="status != null and status != '' and status == 'UN_FINISH'">
|
|
|
|
|
|
+ <!--<if test="status != null and status != '' and status == 'UN_FINISH'">
|
|
and (toer.STATUS = 'FINISHED' or toer.STATUS = 'PERSISTED')
|
|
and (toer.STATUS = 'FINISHED' or toer.STATUS = 'PERSISTED')
|
|
and toer.first_start_time is not null
|
|
and toer.first_start_time is not null
|
|
- </if>
|
|
|
|
|
|
+ </if>-->
|
|
)
|
|
)
|
|
<if test="examId != null and examId != ''">
|
|
<if test="examId != null and examId != ''">
|
|
and s.exam_id = #{examId}
|
|
and s.exam_id = #{examId}
|
|
@@ -882,9 +882,9 @@
|
|
</otherwise>
|
|
</otherwise>
|
|
</choose>
|
|
</choose>
|
|
</if>
|
|
</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>-->
|
|
<if test="maxWarningCount != null and maxWarningCount != '' or maxWarningCount == 0">
|
|
<if test="maxWarningCount != null and maxWarningCount != '' or maxWarningCount == 0">
|
|
and toer.warning_count <= #{maxWarningCount}
|
|
and toer.warning_count <= #{maxWarningCount}
|
|
</if>
|
|
</if>
|
|
@@ -1388,6 +1388,7 @@
|
|
<foreach collection="roomCodeSet" item="roomCode" index="index" open="(" close=")" separator=",">
|
|
<foreach collection="roomCodeSet" item="roomCode" index="index" open="(" close=")" separator=",">
|
|
#{roomCode}
|
|
#{roomCode}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ <!--
|
|
union all
|
|
union all
|
|
select
|
|
select
|
|
count(distinct toer.exam_student_id) as c
|
|
count(distinct toer.exam_student_id) as c
|
|
@@ -1429,6 +1430,7 @@
|
|
) temp
|
|
) temp
|
|
where
|
|
where
|
|
temp.id = toer.exam_student_id)
|
|
temp.id = toer.exam_student_id)
|
|
|
|
+ -->
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findByOnlineInfoRecord" resultType="com.qmth.themis.business.entity.TOeExamRecord">
|
|
<select id="findByOnlineInfoRecord" resultType="com.qmth.themis.business.entity.TOeExamRecord">
|