From aaa55aa7b0be807ddd6814b13307f9cb2cd9c67a Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期六, 12 十月 2024 11:06:14 +0800
Subject: [PATCH] 新增课程审核 ,短信提醒
---
exam-system/src/main/resources/mapper/institutionaccess/ThExamRecordMapper.xml | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/exam-system/src/main/resources/mapper/institutionaccess/ThExamRecordMapper.xml b/exam-system/src/main/resources/mapper/institutionaccess/ThExamRecordMapper.xml
index 08e9404..0f7bb27 100644
--- a/exam-system/src/main/resources/mapper/institutionaccess/ThExamRecordMapper.xml
+++ b/exam-system/src/main/resources/mapper/institutionaccess/ThExamRecordMapper.xml
@@ -46,5 +46,31 @@
</foreach>
</select>
+ <select id="getStatistic" resultType="com.gkhy.exam.institutionalaccess.model.vo.ThTrainVO">
+ SELECT
+ e.institution_id,
+ count( e.institution_id ) passCount
+ FROM
+ th_exam_record e
+ LEFT JOIN th_batch b ON e.batch_uuid = b.uuid
+ WHERE
+ e.del_flag = 0
+ AND e.exam_is_pass = 1
+ AND b.have_exam = 1
+ <if test="query.subjectCode != null and query.subjectCode != ''">
+ and b.subject_code like concat(#{query.subjectCode}, '%')
+ </if>
+ <if test="query.trainOrgName != null and query.trainOrgName != ''">
+ and b.train_org_name = #{query.trainOrgName}, '%')
+ </if>
+ <if test="query.startTime != null"><!-- 开始时间检索 -->
+ and date_format(b.actual_start_time,'%y-%m-%d') >= date_format(#{query.startTime},'%y-%m-%d')
+ </if>
+ <if test="query.endTime != null"><!-- 结束时间检索 -->
+ and date_format(b.actual_start_time,'%y-%m-%d') <= date_format(#{query.endTime},'%y-%m-%d')
+ </if>
+ GROUP BY
+ e.institution_id
+ </select>
</mapper>
--
Gitblit v1.9.2