From 62eb499b0c969f246d3245d1429a97da4de1ce28 Mon Sep 17 00:00:00 2001
From: 钟日健 <arsn163@163.com>
Date: Mon, 01 Jun 2026 20:46:13 +0800
Subject: [PATCH] feat: 成绩查询增加年龄查询返回

---
 src/main/java/org/springblade/modules/simulateexam/mapper/SimulateExamRecordMapper.xml |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/springblade/modules/simulateexam/mapper/SimulateExamRecordMapper.xml b/src/main/java/org/springblade/modules/simulateexam/mapper/SimulateExamRecordMapper.xml
index 56339eb..c67bf17 100644
--- a/src/main/java/org/springblade/modules/simulateexam/mapper/SimulateExamRecordMapper.xml
+++ b/src/main/java/org/springblade/modules/simulateexam/mapper/SimulateExamRecordMapper.xml
@@ -5,17 +5,17 @@
     <!--自定义查询模拟考试记录分页数据-->
     <select id="selectSimulateExamRecordPage" resultType="org.springblade.modules.simulateexam.vo.SimulateExamRecordVO">
         SELECT
-            ser.*,
+            DISTINCT ser.*,
             bu.real_name AS userName,
             bd.dept_name AS deptName
         FROM
             simulate_exam_record ser
-        LEFT JOIN blade_user bu ON bu.phone = ser.phone
+        LEFT JOIN blade_user bu ON bu.cardid = ser.id_card_no
         LEFT JOIN blade_dept bd ON bd.id = bu.dept_id
         WHERE
-            1 = 1
-            AND ser.phone IS NOT NULL
-            AND ser.phone != ""
+            bu.is_deleted = 0
+            AND ser.id_card_no IS NOT NULL
+            AND ser.id_card_no != ""
         <if test="simulateExamRecord.phone != null and simulateExamRecord.phone != ''" >
             and ser.phone LIKE CONCAT('%',#{simulateExamRecord.phone},'%')
         </if>

--
Gitblit v1.9.3