From 21c986ab8042c7bc6ba2a40ecf839fb6cf521d15 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期一, 07 十一月 2022 15:09:15 +0800
Subject: [PATCH] #

---
 src/main/resources/mapper/UserMapper.xml |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/UserMapper.xml b/src/main/resources/mapper/UserMapper.xml
index 4265998..27edca6 100644
--- a/src/main/resources/mapper/UserMapper.xml
+++ b/src/main/resources/mapper/UserMapper.xml
@@ -38,4 +38,17 @@
         ORDER BY su.create_time DESC
     </select>
 
+    <select id="getUserByDept" resultMap="BaseResultMap">
+        SELECT
+        *
+        FROM sys_user
+        where 1=1
+        <if test="hostId != null and hostId != ''">
+            and host_id = #{hostId}
+        </if>
+        <if test="deptId != null and deptId != ''">
+            and dept_id = #{deptId}
+        </if>
+    </select>
+
 </mapper>

--
Gitblit v1.9.1