From ed2823ccf96675ab29414a588bba85bb8852ef9d Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期日, 28 四月 2024 11:52:25 +0800
Subject: [PATCH] Merge branch 'master' of https://gitee.com/a1536384743/erp_-override

---
 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