|
@@ -17,14 +17,14 @@
|
|
|
<if test="userId != null and userId != ''">
|
|
|
and EXISTS(
|
|
|
select
|
|
|
- DISTINCT tees.exam_id
|
|
|
+ DISTINCT tbeiu.exam_id
|
|
|
from
|
|
|
t_b_exam_invigilate_user tbeiu
|
|
|
left join t_e_exam_student tees on
|
|
|
tees.room_code = tbeiu.room_code
|
|
|
where
|
|
|
tbeiu.user_id = #{userId}
|
|
|
- and t.id = tees.exam_id)
|
|
|
+ and t.id = tbeiu.exam_id)
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
@@ -75,14 +75,14 @@
|
|
|
and t.enable = 1
|
|
|
and EXISTS(
|
|
|
select
|
|
|
- DISTINCT tees.exam_id
|
|
|
+ DISTINCT tbeiu.exam_id
|
|
|
from
|
|
|
t_b_exam_invigilate_user tbeiu
|
|
|
left join t_e_exam_student tees on
|
|
|
tees.room_code = tbeiu.room_code
|
|
|
where
|
|
|
tbeiu.user_id = #{userId}
|
|
|
- and t.id = tees.exam_id)
|
|
|
+ and t.id = tbeiu.exam_id)
|
|
|
</if>
|
|
|
<if test="orgId != null and orgId != ''">
|
|
|
and t.org_id = #{orgId}
|
|
@@ -152,7 +152,7 @@
|
|
|
where
|
|
|
EXISTS(
|
|
|
select
|
|
|
- DISTINCT tees.exam_id
|
|
|
+ DISTINCT tbeiu.exam_id
|
|
|
from
|
|
|
t_b_exam_invigilate_user tbeiu
|
|
|
left join t_e_exam_student tees on
|
|
@@ -161,7 +161,7 @@
|
|
|
<if test="userId != null and userId != ''">
|
|
|
and tbeiu.user_id = #{userId}
|
|
|
</if>
|
|
|
- and tee.id = tees.exam_id
|
|
|
+ and tee.id = tbeiu.exam_id
|
|
|
</where>
|
|
|
)
|
|
|
order by tee.create_time desc
|