From 35be7e24498a3e1b143a213643a5d8d86bdc4e13 Mon Sep 17 00:00:00 2001
From: 钟日健 <arsn163@163.com>
Date: Thu, 30 Oct 2025 19:40:22 +0800
Subject: [PATCH] fix: 报名年龄调整
---
src/main/java/org/springblade/modules/simulateexam/mapper/SimulateExamRecordMapper.xml | 24 ++++++++++++++++++++++--
1 files changed, 22 insertions(+), 2 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 52ba575..c67bf17 100644
--- a/src/main/java/org/springblade/modules/simulateexam/mapper/SimulateExamRecordMapper.xml
+++ b/src/main/java/org/springblade/modules/simulateexam/mapper/SimulateExamRecordMapper.xml
@@ -4,11 +4,31 @@
<!--自定义查询模拟考试记录分页数据-->
<select id="selectSimulateExamRecordPage" resultType="org.springblade.modules.simulateexam.vo.SimulateExamRecordVO">
- select * from simulate_exam_record
- where 1=1
+ SELECT
+ DISTINCT ser.*,
+ bu.real_name AS userName,
+ bd.dept_name AS deptName
+ FROM
+ simulate_exam_record ser
+ LEFT JOIN blade_user bu ON bu.cardid = ser.id_card_no
+ LEFT JOIN blade_dept bd ON bd.id = bu.dept_id
+ WHERE
+ 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>
<if test="simulateExamRecord.idCardNo!=null and simulateExamRecord.idCardNo!=''">
and id_card_no=#{simulateExamRecord.idCardNo}
</if>
+ <if test="simulateExamRecord.deptId!=null and simulateExamRecord.deptId!=''">
+ AND bu.dept_id = #{simulateExamRecord.deptId}
+ </if>
+ <if test="simulateExamRecord.userName != null and simulateExamRecord.userName !='' ">
+ AND bu.real_name LIKE CONCAT('%',#{simulateExamRecord.userName},'%')
+ </if>
+ ORDER BY ser.start_time DESC
</select>
--
Gitblit v1.9.3