|
@@ -33,7 +33,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="listByExamIdAndStatusAndUserId" resultType="com.qmth.teachcloud.mark.dto.ScanStudentDto">
|
|
|
- select
|
|
|
+ select
|
|
|
s.id studentId,
|
|
|
bes.student_name,
|
|
|
s.student_code
|
|
@@ -56,9 +56,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 scan_omr_task t
|
|
|
- where s.id = t.student_id
|
|
|
+ where t.exam_id = #{examId}
|
|
|
and t.status=#{status}
|
|
|
- <if test="dpr != null">
|
|
|
+ and s.id = t.student_id
|
|
|
+ <if test="dpr != null">
|
|
|
<if test="dpr.requestUserId != null">
|
|
|
AND s.create_id = #{dpr.requestUserId}
|
|
|
</if>
|
|
@@ -90,8 +91,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 scan_omr_task t
|
|
|
- where s.id = t.student_id
|
|
|
+ where t.exam_id = #{examId}
|
|
|
and t.status=#{status}
|
|
|
+ and s.id = t.student_id
|
|
|
<if test="dpr != null">
|
|
|
<if test="dpr.requestUserId != null">
|
|
|
AND s.create_id = #{dpr.requestUserId}
|