Gqingci 1 день назад
Родитель
Сommit
0542ee7cc7

+ 1 - 0
ruoyi-admin/src/main/resources/application.yml

@@ -138,6 +138,7 @@ tenant:
     - sys_tenant_package
     - cs_session
     - main_post_candidate_hire_attachment
+    - main_student
     - main_student_education
     - main_student_experience
     - main_student_project

+ 1 - 8
ruoyi-modules/ruoyi-main/src/main/resources/mapper/MainExamEvaluationMapper.xml

@@ -66,14 +66,7 @@
             a.evaluation_id AS evaluationId,
             COUNT(DISTINCT a.id) AS totalCount,
             COUNT(DISTINCT CASE
-                WHEN a.final_result IN ('1', '2')
-                 AND EXISTS (
-                    SELECT 1
-                    FROM main_exam_ability_attempt t
-                    WHERE t.apply_id = a.id
-                      AND t.del_flag = '0'
-                      AND t.total_score IS NOT NULL
-                 )
+                WHEN a.apply_status = '2' OR a.final_result IN ('1', '2')
                 THEN a.id
             END) AS participantCount
         FROM main_exam_apply a