Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
e456f663
Commit
e456f663
authored
Dec 08, 2020
by
季圣华
Browse files
给session中增加userId
parent
54c9badc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/controller/UserController.java
View file @
e456f663
...
...
@@ -106,6 +106,7 @@ public class UserController {
//验证通过 ,可以登录,放入session,记录登录日志
user
=
userService
.
getUserByLoginName
(
loginName
);
request
.
getSession
().
setAttribute
(
"user"
,
user
);
request
.
getSession
().
setAttribute
(
"userId"
,
user
.
getId
());
String
roleType
=
userService
.
getRoleTypeByUserId
(
user
.
getId
());
//角色类型
request
.
getSession
().
setAttribute
(
"roleType"
,
roleType
);
if
(
user
.
getTenantId
()!=
null
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment