优化租户管理模块
This commit is contained in:
@@ -118,7 +118,9 @@ public class TenantService {
|
||||
int result=0;
|
||||
try{
|
||||
//如果租户下的用户限制数量为1,则将该租户之外的用户全部禁用
|
||||
if(1 == tenant.getUserNumLimit()) {
|
||||
userMapperEx.disableUserByLimit(tenant.getTenantId());
|
||||
}
|
||||
result=tenantMapper.updateByPrimaryKeySelective(tenant);
|
||||
}catch(Exception e){
|
||||
JshException.writeFail(logger, e);
|
||||
|
||||
Reference in New Issue
Block a user