From b0032ea8486dfc0fcf1c830dfad2a154e139b851 Mon Sep 17 00:00:00 2001
From: xieb <vip_xiaobin810@163.com>
Date: Tue, 12 Dec 2023 17:12:13 +0800
Subject: [PATCH] 用户筛选

---
 src/main/java/org/springblade/modules/system/mapper/UserMapper.xml |    9 +++++++++
 1 files changed, 9 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 fd25827..ea9e949 100644
--- a/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
+++ b/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -35,6 +35,12 @@
         <if test="user.tenantId!=null and user.tenantId != ''">
             and tenant_id = #{user.tenantId}
         </if>
+        <if test="user.code!=null and user.code != ''">
+            and code like concat('%', #{user.code},'%')
+        </if>
+        <if test="user.name!=null and user.name != ''">
+            and name like concat('%', #{user.name},'%')
+        </if>
         <if test="user.account!=null and user.account != ''">
             and account = #{user.account}
         </if>
@@ -44,6 +50,9 @@
         <if test="user.userType!=null and user.userType != ''">
             and user_type = #{user.userType}
         </if>
+        <if test="user.postId!=null and user.postId != ''">
+            and post_id = #{user.postId}
+        </if>
         <if test="deptIdList!=null and deptIdList.size>0">
             and id in (
                 SELECT

--
Gitblit v1.9.3