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
5c03ebb0
Commit
5c03ebb0
authored
Oct 24, 2022
by
季圣华
Browse files
优化租户管理模块
parent
4e445d18
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/tenant/TenantService.java
View file @
5c03ebb0
...
...
@@ -118,7 +118,9 @@ public class TenantService {
int
result
=
0
;
try
{
//如果租户下的用户限制数量为1,则将该租户之外的用户全部禁用
userMapperEx
.
disableUserByLimit
(
tenant
.
getTenantId
());
if
(
1
==
tenant
.
getUserNumLimit
())
{
userMapperEx
.
disableUserByLimit
(
tenant
.
getTenantId
());
}
result
=
tenantMapper
.
updateByPrimaryKeySelective
(
tenant
);
}
catch
(
Exception
e
){
JshException
.
writeFail
(
logger
,
e
);
...
...
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