From 49034a174da199c56fa132973b99a6b06cd5b4a4 Mon Sep 17 00:00:00 2001
From: heheng <heheng@123456>
Date: 星期一, 23 十二月 2024 17:05:29 +0800
Subject: [PATCH] 修改sql

---
 assess-system/src/main/resources/mapper/SysUserMapper.xml |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/assess-system/src/main/resources/mapper/SysUserMapper.xml b/assess-system/src/main/resources/mapper/SysUserMapper.xml
index 9811df4..89759fb 100644
--- a/assess-system/src/main/resources/mapper/SysUserMapper.xml
+++ b/assess-system/src/main/resources/mapper/SysUserMapper.xml
@@ -94,6 +94,9 @@
             <if test="state != null">
                 AND u.state = #{state}
             </if>
+            <if test="attribute != null">
+                AND a.attribute = #{attribute}
+            </if>
             <if test="phone != null and phone != ''">
                 AND u.phone like concat('%', #{phone}, '%')
             </if>
@@ -135,6 +138,9 @@
             <if test="post != null and post != ''">
                 AND u.post =#{post}
             </if>
+            <if test="agencyName != null and agencyName != ''">
+                AND a.name like concat('%', #{agencyName}, '%')
+            </if>
 
         </where>
         order by u.create_time desc

--
Gitblit v1.9.2