From 6f9ef20f77fb56f3dccdf06575061403662f87bc Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Wed, 18 Aug 2021 11:43:47 +0800
Subject: [PATCH] 新增用户查询列表

---
 src/main/java/org/springblade/modules/system/mapper/UserMapper.xml |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml b/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
index bac4a38..08ba532 100644
--- a/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
+++ b/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -143,6 +143,40 @@
         ORDER BY id
     </select>
 
+    <select id="selectUserPages" resultMap="userResultMap">
+        select * from blade_user where is_deleted = 0
+        <if test="user.realName!=null and user.realName != ''">
+            and real_name like concat(concat('%', #{user.realName}),'%')
+        </if>
+        <if test="user.deptId!=null and user.deptId != ''">
+            and dept_id like concat(concat('%', #{user.deptId}),'%')
+        </if>
+        <if test="user.userType!=null and user.userType != ''">
+            and user_type = #{user.userType}
+        </if>
+        <if test="user.nativeplace!=null and user.nativeplace != ''">
+            and nativeplace = #{user.nativeplace}
+        </if>
+        <if test="user.examinationType!=null and user.examinationType != ''">
+            and examination_type = #{user.examinationType}
+        </if>
+        <if test="user.sex!=null and user.sex != ''">
+            and sex = #{user.sex}
+        </if>
+        <if test="user.status!=null and user.status != ''">
+            and status = #{user.status}
+        </if>
+        <if test="user.hold!=null and user.hold != ''">
+            and hold = #{user.hold}
+        </if> <if test="user.jurisdiction!=null and user.jurisdiction != ''">
+            and jurisdiction = #{user.jurisdiction}
+        </if>
+        <if test="user.securitynumber!=null and user.securitynumber != ''">
+            and securitynumber = #{user.securitynumber}
+        </if>
+        ORDER BY id
+    </select>
+
 
     <!--保安员列表-->
     <select id="selectUserPageSecurity" resultMap="userResultMaps">

--
Gitblit v1.9.3