|
@@ -222,7 +222,7 @@
|
|
left join t_oe_exam_record toer on
|
|
left join t_oe_exam_record toer on
|
|
toer.exam_student_id = t.id
|
|
toer.exam_student_id = t.id
|
|
where t.exam_id = #{examId} and t.current_record_id is not null
|
|
where t.exam_id = #{examId} and t.current_record_id is not null
|
|
- <if test="activityIds != null">
|
|
|
|
|
|
+ <if test="activityIds != null and activityIds != '' and activityIds.size > 0">
|
|
and t.exam_activity_id in
|
|
and t.exam_activity_id in
|
|
<foreach collection="activityIds" item="acid" index="index"
|
|
<foreach collection="activityIds" item="acid" index="index"
|
|
open="(" close=")" separator=",">
|
|
open="(" close=")" separator=",">
|
|
@@ -238,7 +238,7 @@
|
|
select t.exam_activity_id activityId,t.room_code roomCode,count(1) cc
|
|
select t.exam_activity_id activityId,t.room_code roomCode,count(1) cc
|
|
from t_e_exam_student t
|
|
from t_e_exam_student t
|
|
where t.exam_id = #{examId} and t.current_record_id is null
|
|
where t.exam_id = #{examId} and t.current_record_id is null
|
|
- <if test="activityIds != null">
|
|
|
|
|
|
+ <if test="activityIds != null and activityIds != '' and activityIds.size > 0">
|
|
and t.exam_activity_id in
|
|
and t.exam_activity_id in
|
|
<foreach collection="activityIds" item="acid" index="index"
|
|
<foreach collection="activityIds" item="acid" index="index"
|
|
open="(" close=")" separator=",">
|
|
open="(" close=")" separator=",">
|