|
@@ -117,7 +117,7 @@
|
|
|
<if test="userId != null and userId != ''">
|
|
|
tbeiu.user_id = #{userId} and
|
|
|
</if>
|
|
|
- tbeiu.room_code = tees.room_code and toer.exam_student_id = tees.id)))
|
|
|
+ tbeiu.room_code = tees.room_code and tees.exam_id = tbeiu.exam_id and toer.exam_student_id = tees.id)))
|
|
|
t1 on t1.id = t.id
|
|
|
</sql>
|
|
|
|
|
@@ -353,7 +353,7 @@
|
|
|
<if test="userId != null and userId != ''">
|
|
|
tbeiu.user_id = #{userId} and
|
|
|
</if>
|
|
|
- tbeiu.room_code = tees.room_code and toer.exam_student_id = tees.id)))
|
|
|
+ tbeiu.room_code = tees.room_code and tees.exam_id = tbeiu.exam_id and toer.exam_student_id = tees.id)))
|
|
|
t on t.id = tiiwi.exam_record_id
|
|
|
left join t_oe_exam_record toer on toer.id = t.id
|
|
|
left join t_e_exam_student tees on tees.id = tiiwi.exam_student_id
|
|
@@ -443,7 +443,7 @@
|
|
|
<if test="userId != null and userId != ''">
|
|
|
tbeiu.user_id = #{userId} and
|
|
|
</if>
|
|
|
- tbeiu.room_code = tees.room_code and toer.exam_student_id = tees.id)))
|
|
|
+ tbeiu.room_code = tees.room_code and tees.exam_id = tbeiu.exam_id and toer.exam_student_id = tees.id)))
|
|
|
t on t.id = tiiwi.exam_record_id
|
|
|
left join t_oe_exam_record toer on toer.id = t.id
|
|
|
left join t_e_exam_student tees on tees.id = tiiwi.exam_student_id
|
|
@@ -771,7 +771,7 @@
|
|
|
<if test="userId != null and userId != ''">
|
|
|
and tbeiu.user_id = #{userId}
|
|
|
</if>
|
|
|
- and tbeiu.exam_id = tees.exam_id))) t1 on
|
|
|
+ and tbeiu.exam_id = tees.exam_id and tees.room_code = tbeiu.room_code))) t1 on
|
|
|
t1.id = t.id
|
|
|
<where> 1 = 1
|
|
|
<if test="examId != null and examId != ''">
|