|
@@ -1342,6 +1342,49 @@
|
|
|
</foreach>
|
|
|
and (t.STATUS = 'FINISHED'
|
|
|
or t.STATUS = 'PERSISTED')
|
|
|
+ union all
|
|
|
+ select
|
|
|
+ count(1) as c
|
|
|
+ from
|
|
|
+ t_e_exam_student t
|
|
|
+ left join t_e_exam_activity f on
|
|
|
+ t.exam_activity_id = f.id
|
|
|
+ join t_e_exam tee on
|
|
|
+ tee.id = t.exam_id
|
|
|
+ where
|
|
|
+ NOT EXISTS(
|
|
|
+ select
|
|
|
+ toer.exam_student_id
|
|
|
+ from
|
|
|
+ t_oe_exam_record toer
|
|
|
+ where
|
|
|
+ t.id = toer.exam_student_id)
|
|
|
+ and t.exam_id = #{examId}
|
|
|
+ and t.room_code in
|
|
|
+ <foreach collection="roomCodeSet" item="roomCode" index="index" open="(" close=")" separator=",">
|
|
|
+ #{roomCode}
|
|
|
+ </foreach>
|
|
|
+ union all
|
|
|
+ select
|
|
|
+ count(1) as c
|
|
|
+ from
|
|
|
+ t_oe_exam_record toer
|
|
|
+ join t_e_exam_student t on
|
|
|
+ t.id = toer.exam_student_id
|
|
|
+ and t.exam_id = toer.exam_id
|
|
|
+ and t.exam_activity_id = toer.exam_activity_id
|
|
|
+ join t_e_exam_activity f on
|
|
|
+ t.exam_activity_id = f.id
|
|
|
+ join t_e_exam tee on
|
|
|
+ tee.id = t.exam_id
|
|
|
+ where
|
|
|
+ toer.exam_id = #{examId} and t.room_code in
|
|
|
+ <foreach collection="roomCodeSet" item="roomCode" index="index" open="(" close=")" separator=",">
|
|
|
+ #{roomCode}
|
|
|
+ </foreach>
|
|
|
+ and toer.status = 'FIRST_PREPARE'
|
|
|
+ and (toer.first_start_time is null
|
|
|
+ or toer.first_prepare_time is null)
|
|
|
</select>
|
|
|
|
|
|
<select id="findByOnlineInfoRecord" resultType="com.qmth.themis.business.entity.TOeExamRecord">
|