mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-12-26 07:26:43 +08:00
fix 修复 校验租户账号余额 查询语句错误
This commit is contained in:
parent
50fd75bfdd
commit
ee68904d59
@ -347,8 +347,8 @@ public class SysTenantServiceImpl implements ISysTenantService {
|
||||
if (tenant.getAccountCount() == -1) {
|
||||
return true;
|
||||
}
|
||||
Long userNumber = userMapper.selectCount(new LambdaQueryWrapper<>());
|
||||
// 如果余额大于0代表还有可用名额
|
||||
Long userNumber = userMapper.selectCount(
|
||||
new LambdaQueryWrapper<SysUser>().eq(SysUser::getTenantId, tenantId)); // 如果余额大于0代表还有可用名额
|
||||
return tenant.getAccountCount() - userNumber > 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user