|
@@ -9,15 +9,10 @@
|
|
tes.base_photo_path as basePhotoPath
|
|
tes.base_photo_path as basePhotoPath
|
|
from
|
|
from
|
|
t_ie_exam_invigilate_call tieic
|
|
t_ie_exam_invigilate_call tieic
|
|
- left join t_e_exam_student tees on
|
|
|
|
- tees.id = tieic.exam_student_id
|
|
|
|
- left join t_e_student tes on
|
|
|
|
- tes.id = tees.student_id
|
|
|
|
- left join t_b_exam_invigilate_user tbeiu on
|
|
|
|
- tbeiu.exam_id = tieic.exam_id
|
|
|
|
- and tbeiu.room_code = tees.room_code
|
|
|
|
- left join t_oe_exam_record toer on
|
|
|
|
- toer.id = tieic.exam_record_id
|
|
|
|
|
|
+ left join t_e_exam_student tees on tees.id = tieic.exam_student_id
|
|
|
|
+ left join t_e_student tes on tes.id = tees.student_id
|
|
|
|
+ left join t_b_exam_invigilate_user tbeiu on tbeiu.exam_id = tieic.exam_id and tbeiu.room_code = tees.room_code
|
|
|
|
+ left join t_oe_exam_record toer on toer.id = tieic.exam_record_id
|
|
<where> 1 = 1
|
|
<where> 1 = 1
|
|
<if test="examId != null and examId != ''">
|
|
<if test="examId != null and examId != ''">
|
|
and tees.exam_id = #{examId}
|
|
and tees.exam_id = #{examId}
|
|
@@ -52,24 +47,20 @@
|
|
count(1)
|
|
count(1)
|
|
from
|
|
from
|
|
t_ie_exam_invigilate_call tieic
|
|
t_ie_exam_invigilate_call tieic
|
|
- left join t_e_exam_student tees on
|
|
|
|
- tees.id = tieic.exam_student_id
|
|
|
|
- left join t_e_student tes on
|
|
|
|
- tes.id = tees.student_id
|
|
|
|
- left join t_b_exam_invigilate_user tbeiu on
|
|
|
|
- tbeiu.exam_id = tieic.exam_id
|
|
|
|
- and tbeiu.room_code = tees.room_code
|
|
|
|
|
|
+ left join t_e_exam_student tees on tees.id = tieic.exam_student_id
|
|
|
|
+ left join t_e_student tes on tes.id = tees.student_id
|
|
|
|
+ left join t_b_exam_invigilate_user tbeiu on tbeiu.exam_id = tieic.exam_id and tbeiu.room_code = tees.room_code
|
|
left join t_oe_exam_record toer on
|
|
left join t_oe_exam_record toer on
|
|
toer.id = tieic.exam_record_id
|
|
toer.id = tieic.exam_record_id
|
|
<where>
|
|
<where>
|
|
<if test="examId != null and examId != ''">
|
|
<if test="examId != null and examId != ''">
|
|
- and tieic.exam_id = #{examId}
|
|
|
|
|
|
+ and tees.exam_id = #{examId}
|
|
</if>
|
|
</if>
|
|
<if test="userId != null and userId != ''">
|
|
<if test="userId != null and userId != ''">
|
|
and tbeiu.user_id = #{userId}
|
|
and tbeiu.user_id = #{userId}
|
|
</if>
|
|
</if>
|
|
<if test="orgId != null and orgId != ''">
|
|
<if test="orgId != null and orgId != ''">
|
|
- and tbeiu.org_id = #{orgId}
|
|
|
|
|
|
+ and tes.org_id = #{orgId}
|
|
</if>
|
|
</if>
|
|
<if test="status != null and status != ''">
|
|
<if test="status != null and status != ''">
|
|
and tieic.status = #{status}
|
|
and tieic.status = #{status}
|