mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-17 16:56:39 +08:00
reset 回滚错误提交
This commit is contained in:
parent
1dbce3ab7c
commit
a39a69cac5
@ -349,8 +349,7 @@ public class SysTenantServiceImpl implements ISysTenantService {
|
|||||||
if (tenant.getAccountCount() == -1) {
|
if (tenant.getAccountCount() == -1) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
Long userNumber = userMapper.selectCount(
|
Long userNumber = userMapper.selectCount(new LambdaQueryWrapper<>());
|
||||||
new LambdaQueryWrapper<SysUser>().eq(SysUser::getTenantId, tenantId));
|
|
||||||
// 如果余额大于0代表还有可用名额
|
// 如果余额大于0代表还有可用名额
|
||||||
return tenant.getAccountCount() - userNumber > 0;
|
return tenant.getAccountCount() - userNumber > 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user