Commit 5c03ebb0 authored by 季圣华's avatar 季圣华
Browse files

优化租户管理模块

parent 4e445d18
...@@ -118,7 +118,9 @@ public class TenantService { ...@@ -118,7 +118,9 @@ public class TenantService {
int result=0; int result=0;
try{ try{
//如果租户下的用户限制数量为1,则将该租户之外的用户全部禁用 //如果租户下的用户限制数量为1,则将该租户之外的用户全部禁用
userMapperEx.disableUserByLimit(tenant.getTenantId()); if(1 == tenant.getUserNumLimit()) {
userMapperEx.disableUserByLimit(tenant.getTenantId());
}
result=tenantMapper.updateByPrimaryKeySelective(tenant); result=tenantMapper.updateByPrimaryKeySelective(tenant);
}catch(Exception e){ }catch(Exception e){
JshException.writeFail(logger, e); JshException.writeFail(logger, e);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment