|
@@ -536,10 +536,11 @@
|
|
WHERE id = #{id}
|
|
WHERE id = #{id}
|
|
</update>
|
|
</update>
|
|
<select id="scanProgress" resultType="cn.com.qmth.scancentral.vo.subject.SubjectScanProgressVo">
|
|
<select id="scanProgress" resultType="cn.com.qmth.scancentral.vo.subject.SubjectScanProgressVo">
|
|
- select t.subject_code,t.subject_name,
|
|
|
|
|
|
+ select t.subject_code,s.name subject_name,
|
|
sum(case when t.status='UNEXIST' then 1 else 0 end) unexistCount,
|
|
sum(case when t.status='UNEXIST' then 1 else 0 end) unexistCount,
|
|
count(1) studentCount
|
|
count(1) studentCount
|
|
from sc_student t
|
|
from sc_student t
|
|
|
|
+ inner join sc_subject s on t.exam_id=s.exam_id and t.subject_code=s.code
|
|
where t.exam_id=#{examId}
|
|
where t.exam_id=#{examId}
|
|
<if test="subjectCode != null and subjectCode !=''">
|
|
<if test="subjectCode != null and subjectCode !=''">
|
|
and t.subject_code=#{subjectCode}
|
|
and t.subject_code=#{subjectCode}
|