|
@@ -907,6 +907,13 @@ namespace GxPress.Repository.Implement
|
|
|
query.Where(nameof(User.IsFreeze), request.IsFreeze == 1);
|
|
|
if (request.IsVip > 0)
|
|
|
query.Where(nameof(User.IsVip), request.IsVip == 1);
|
|
|
+ if (request.BeginAccumulativePrice > 0 || request.EndAccumulativePrice > 0)
|
|
|
+ {
|
|
|
+ query.Where(nameof(User.AccumulativePrice), ">=", request.BeginAccumulativePrice);
|
|
|
+ query.Where(nameof(User.AccumulativePrice), "<=", request.EndAccumulativePrice);
|
|
|
+ }
|
|
|
+ if (request.RenewalCount > 0)
|
|
|
+ query.Where(nameof(User.RenewalCount), request.RenewalCount);
|
|
|
result.Total = await _repository.CountAsync(query);
|
|
|
var items = await _repository.GetAllAsync(query.ForPage(request.Page, request.PerPage));
|
|
|
result.Items = items.Select(n => _mapper.Map<UserDetail>(n));
|