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
7af407dc
Commit
7af407dc
authored
Jul 14, 2019
by
季圣华
Browse files
解决超管登录的报错
parent
1b88de7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/controller/UserController.java
View file @
7af407dc
...
...
@@ -106,15 +106,17 @@ public class UserController {
msgTip
=
"user can login"
;
request
.
getSession
().
setAttribute
(
"user"
,
user
);
if
((
"open"
).
equals
(
mybatisPlusStatus
))
{
Tenant
tenant
=
tenantService
.
getTenantByTenantId
(
user
.
getTenantId
());
if
(
tenant
!=
null
)
{
Long
tenantId
=
tenant
.
getTenantId
();
Integer
userNumLimit
=
tenant
.
getUserNumLimit
();
Integer
billsNumLimit
=
tenant
.
getBillsNumLimit
();
if
(
tenantId
!=
null
)
{
request
.
getSession
().
setAttribute
(
"tenantId"
,
tenantId
);
//租户tenantId
request
.
getSession
().
setAttribute
(
"userNumLimit"
,
userNumLimit
);
//用户限制数
request
.
getSession
().
setAttribute
(
"billsNumLimit"
,
billsNumLimit
);
//单据限制数
if
(
user
.
getTenantId
()!=
null
)
{
Tenant
tenant
=
tenantService
.
getTenantByTenantId
(
user
.
getTenantId
());
if
(
tenant
!=
null
)
{
Long
tenantId
=
tenant
.
getTenantId
();
Integer
userNumLimit
=
tenant
.
getUserNumLimit
();
Integer
billsNumLimit
=
tenant
.
getBillsNumLimit
();
if
(
tenantId
!=
null
)
{
request
.
getSession
().
setAttribute
(
"tenantId"
,
tenantId
);
//租户tenantId
request
.
getSession
().
setAttribute
(
"userNumLimit"
,
userNumLimit
);
//用户限制数
request
.
getSession
().
setAttribute
(
"billsNumLimit"
,
billsNumLimit
);
//单据限制数
}
}
}
}
...
...
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