From e3241a8a2b867fb60cd63edd64744a1fbfae0d1d Mon Sep 17 00:00:00 2001
From: heheng <heheng@123456>
Date: Wed, 11 Dec 2024 17:14:30 +0800
Subject: [PATCH] 更改查询方式
---
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