李昊 4 years ago
parent
commit
270851355c

+ 1 - 1
gx_api/GxPress/Repository/GxPress.Repository.Implement/UserRepository.cs

@@ -898,7 +898,7 @@ namespace GxPress.Repository.Implement
             if (request.VipTypeId > 0)
             if (request.VipTypeId > 0)
                 query.Where(nameof(User.TypeId), request.VipTypeId);
                 query.Where(nameof(User.TypeId), request.VipTypeId);
             if (request.DisableTypeId > 0)
             if (request.DisableTypeId > 0)
-                query.Where(nameof(User.IsDisable), request.VipTypeId == 1);
+                query.Where(nameof(User.IsDisable), request.DisableTypeId == 1);
             result.Total = await _repository.CountAsync(query);
             result.Total = await _repository.CountAsync(query);
             var items = await _repository.GetAllAsync(query.ForPage(request.Page, request.PerPage));
             var items = await _repository.GetAllAsync(query.ForPage(request.Page, request.PerPage));
             result.Items = items.Select(n => _mapper.Map<UserDetail>(n));
             result.Items = items.Select(n => _mapper.Map<UserDetail>(n));