|
@@ -379,19 +379,10 @@
|
|
|
resultType="com.qmth.teachcloud.mark.dto.mark.manage.MarkManageDto">
|
|
|
select
|
|
|
count(1) totalCount,
|
|
|
- sum(case when a.unMarked = 0 then 1 else 0 end) markedCount
|
|
|
- from
|
|
|
- (select
|
|
|
- mt.exam_id,
|
|
|
- mt.paper_number ,
|
|
|
- mt.student_id,
|
|
|
- sum(case when mt.status not in ('MARKED', 'ARBITRATED') then 1 else 0 end) unMarked
|
|
|
+ sum(case when mt.status in ('MARKED', 'ARBITRATED') then 1 else 0 end) markedCount
|
|
|
from mark_task mt
|
|
|
where mt.exam_id = #{examId}
|
|
|
- <if test="paperNumber != null and paperNumber != ''">
|
|
|
and mt.paper_number = #{paperNumber}
|
|
|
- </if>
|
|
|
- group by mt.exam_id, mt.paper_number, mt.student_id) a
|
|
|
</select>
|
|
|
<select id="minQuestionIdByExamIdAndPaperNumber" resultType="java.lang.Long">
|
|
|
SELECT
|