Explorar o código

3.4.4 update-20250410,bug修改

xiaofei hai 2 meses
pai
achega
798d410f88
Modificáronse 1 ficheiros con 1 adicións e 10 borrados
  1. 1 10
      teachcloud-mark/src/main/resources/mapper/MarkTaskMapper.xml

+ 1 - 10
teachcloud-mark/src/main/resources/mapper/MarkTaskMapper.xml

@@ -379,19 +379,10 @@
             resultType="com.qmth.teachcloud.mark.dto.mark.manage.MarkManageDto">
             resultType="com.qmth.teachcloud.mark.dto.mark.manage.MarkManageDto">
         select
         select
             count(1) totalCount,
             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
         from mark_task mt
         where mt.exam_id = #{examId}
         where mt.exam_id = #{examId}
-        <if test="paperNumber != null and paperNumber != ''">
             and mt.paper_number = #{paperNumber}
             and mt.paper_number = #{paperNumber}
-        </if>
-        group by mt.exam_id, mt.paper_number, mt.student_id) a
     </select>
     </select>
     <select id="minQuestionIdByExamIdAndPaperNumber" resultType="java.lang.Long">
     <select id="minQuestionIdByExamIdAndPaperNumber" resultType="java.lang.Long">
         SELECT
         SELECT