From f7ba89eb809ca54dc6eca13101db49320528bdb5 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期日, 28 四月 2024 16:52:50 +0800
Subject: [PATCH] 其他位置登陆自动登出功能

---
 north-glass-erp/src/main/resources/mapper/userInfo/User.xml |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/userInfo/User.xml b/north-glass-erp/src/main/resources/mapper/userInfo/User.xml
index 2b37493..38454fc 100644
--- a/north-glass-erp/src/main/resources/mapper/userInfo/User.xml
+++ b/north-glass-erp/src/main/resources/mapper/userInfo/User.xml
@@ -24,7 +24,20 @@
         insert erp_user_info.user
             (password,user_name)
         values (
-                 #{passWord} ,#{userName}
+                 #{password} ,#{userName}
                )
     </insert>
+
+    <select id="getUserRole">
+        SELECT
+            c.role
+        from
+            user as a
+        left join user_role as b
+            on a.id = b.user_id
+        left join role as c
+            on b.role_id = c.id
+        where a.id = #{loginId}
+
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0