mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	fix 修复 校验租户账号余额 查询语句错误
This commit is contained in:
		@@ -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;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user