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) {
|
||||
return true;
|
||||
}
|
||||
Long userNumber = userMapper.selectCount(
|
||||
new LambdaQueryWrapper<SysUser>().eq(SysUser::getTenantId, tenantId));
|
||||
Long userNumber = userMapper.selectCount(new LambdaQueryWrapper<>());
|
||||
// 如果余额大于0代表还有可用名额
|
||||
return tenant.getAccountCount() - userNumber > 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user