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