From 13a68df58b3f937db5ba6437c814bafdcd8d37f8 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 27 五月 2024 16:09:41 +0800
Subject: [PATCH] 登录时如果不是部门管理员则deptIds填充为用户所在部门

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

diff --git a/src/main/resources/mapper/UserMapper.xml b/src/main/resources/mapper/UserMapper.xml
index 4cdbd6d..1c55b8d 100644
--- a/src/main/resources/mapper/UserMapper.xml
+++ b/src/main/resources/mapper/UserMapper.xml
@@ -565,4 +565,8 @@
         ]]>
     </select>
 
+    <select id="getDeptIds" resultType="integer">
+        SELECT department_id FROM t_user_department WHERE user_id = #{userId} AND dept_admin != 1
+    </select>
+
 </mapper>

--
Gitblit v1.8.0