From c270989672d8c3ff8b1cabe7453b01a972ac69f2 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 21 二月 2024 16:28:25 +0800
Subject: [PATCH] #
---
zy-asrs-wcs/src/main/resources/mapper/system/UserMapper.xml | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/zy-asrs-wcs/src/main/resources/mapper/system/UserMapper.xml b/zy-asrs-wcs/src/main/resources/mapper/system/UserMapper.xml
index 9afa87e..86fcc6e 100644
--- a/zy-asrs-wcs/src/main/resources/mapper/system/UserMapper.xml
+++ b/zy-asrs-wcs/src/main/resources/mapper/system/UserMapper.xml
@@ -22,7 +22,27 @@
<if test="param.deptId != null">
and (FIND_IN_SET(#{param.deptId}, sd.`path`) OR sd.`id` = #{param.deptId})
</if>
+ <if test="param.username != null">
+ and su.username like concat('%',#{param.username},'%')
+ </if>
+ <if test="param.nickname != null">
+ and su.nickname like concat('%',#{param.nickname},'%')
+ </if>
+ <if test="param.phone != null">
+ and su.phone like concat('%',#{param.phone},'%')
+ </if>
+ <if test="param.sex != null">
+ and su.sex = #{param.sex}
+ </if>
+ <if test="param.status != null">
+ and su.status = #{param.status}
+ </if>
<if test="param.condition != null">
+ and (
+ su.username like concat('%',#{param.condition},'%')
+ or su.nickname like concat('%',#{param.condition},'%')
+ or su.phone like concat('%',#{param.condition},'%')
+ )
</if>
order by su.create_time desc
</select>
--
Gitblit v1.9.1