From 41d8611f58087cf58254c9d2b9bf8e22c1f55169 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Thu, 07 Dec 2023 12:06:03 +0800
Subject: [PATCH] 保安员字段修改

---
 src/main/java/org/springblade/modules/simulateexam/mapper/SimulateExamRecordMapper.xml |    4 ++--
 1 files changed, 2 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 56339eb..15c1c76 100644
--- a/src/main/java/org/springblade/modules/simulateexam/mapper/SimulateExamRecordMapper.xml
+++ b/src/main/java/org/springblade/modules/simulateexam/mapper/SimulateExamRecordMapper.xml
@@ -5,7 +5,7 @@
     <!--自定义查询模拟考试记录分页数据-->
     <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
@@ -13,7 +13,7 @@
         LEFT JOIN blade_user bu ON bu.phone = ser.phone
         LEFT JOIN blade_dept bd ON bd.id = bu.dept_id
         WHERE
-            1 = 1
+            bu.is_deleted = 0
             AND ser.phone IS NOT NULL
             AND ser.phone != ""
         <if test="simulateExamRecord.phone != null and simulateExamRecord.phone != ''" >

--
Gitblit v1.9.3