|
@@ -51,9 +51,10 @@
|
|
and exists (select 1 from mark_paper mp where s.exam_id = mp.exam_id and s.course_paper_id = mp.course_paper_id and s.paper_type = mp.paper_type and mp.status = #{markPaperStatus})
|
|
and exists (select 1 from mark_paper mp where s.exam_id = mp.exam_id and s.course_paper_id = mp.course_paper_id and s.paper_type = mp.paper_type and mp.status = #{markPaperStatus})
|
|
and exists(select 1
|
|
and exists(select 1
|
|
from scan_omr_task t
|
|
from scan_omr_task t
|
|
- where s.id = t.student_id
|
|
|
|
|
|
+ where t.exam_id = #{examId}
|
|
and t.status=#{status}
|
|
and t.status=#{status}
|
|
- <if test="dpr != null">
|
|
|
|
|
|
+ and s.id = t.student_id
|
|
|
|
+ <if test="dpr != null">
|
|
<if test="dpr.requestUserId != null">
|
|
<if test="dpr.requestUserId != null">
|
|
AND s.create_id = #{dpr.requestUserId}
|
|
AND s.create_id = #{dpr.requestUserId}
|
|
</if>
|
|
</if>
|
|
@@ -85,8 +86,9 @@
|
|
and exists (select 1 from mark_paper mp where s.exam_id = mp.exam_id and s.course_paper_id = mp.course_paper_id and s.paper_type = mp.paper_type and mp.status = #{markPaperStatus})
|
|
and exists (select 1 from mark_paper mp where s.exam_id = mp.exam_id and s.course_paper_id = mp.course_paper_id and s.paper_type = mp.paper_type and mp.status = #{markPaperStatus})
|
|
and exists(select 1
|
|
and exists(select 1
|
|
from scan_omr_task t
|
|
from scan_omr_task t
|
|
- where s.id = t.student_id
|
|
|
|
|
|
+ where t.exam_id = #{examId}
|
|
and t.status=#{status}
|
|
and t.status=#{status}
|
|
|
|
+ and s.id = t.student_id
|
|
<if test="dpr != null">
|
|
<if test="dpr != null">
|
|
<if test="dpr.requestUserId != null">
|
|
<if test="dpr.requestUserId != null">
|
|
AND s.create_id = #{dpr.requestUserId}
|
|
AND s.create_id = #{dpr.requestUserId}
|