From 3aae8ddd5b9624626921abdcc33122dccdcd5c61 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期五, 27 十二月 2024 13:24:46 +0800
Subject: [PATCH] 修改学时证书接收接口

---
 exam-system/src/main/resources/mapper/institutionaccess/ThExamRecordMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/exam-system/src/main/resources/mapper/institutionaccess/ThExamRecordMapper.xml b/exam-system/src/main/resources/mapper/institutionaccess/ThExamRecordMapper.xml
index 0f7bb27..c373aa4 100644
--- a/exam-system/src/main/resources/mapper/institutionaccess/ThExamRecordMapper.xml
+++ b/exam-system/src/main/resources/mapper/institutionaccess/ThExamRecordMapper.xml
@@ -11,7 +11,7 @@
         LEFT JOIN th_student s ON s.idcard = e.idcard
         LEFT JOIN th_batch b ON b.uuid = e.batch_uuid
         WHERE
-        e.del_flag = 0
+        e.del_flag = 0 and s.del_flag = 0 and b.del_flag = 0
         <if test="query.idcard != null and query.idcard != ''">
             and e.idcard = #{query.idcard}
         </if>
@@ -49,7 +49,7 @@
     <select id="getStatistic" resultType="com.gkhy.exam.institutionalaccess.model.vo.ThTrainVO">
         SELECT
         e.institution_id,
-        count( e.institution_id ) passCount
+        count(DISTINCT e.idcard) passCount
         FROM
         th_exam_record e
         LEFT JOIN th_batch b ON e.batch_uuid = b.uuid

--
Gitblit v1.9.2