优化租户管理模块

This commit is contained in:
季圣华
2022-10-24 23:05:50 +08:00
parent 4e445d18ad
commit 5c03ebb07c

View File

@@ -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);