|
@@ -935,7 +935,7 @@ namespace GxPress.Repository.Implement
|
|
if (request.RenewalCount > 0)
|
|
if (request.RenewalCount > 0)
|
|
query.Where(nameof(User.RenewalCount), request.RenewalCount);
|
|
query.Where(nameof(User.RenewalCount), request.RenewalCount);
|
|
result.Total = await _repository.CountAsync(query);
|
|
result.Total = await _repository.CountAsync(query);
|
|
- if (!string.IsNullOrEmpty(request.Sort))
|
|
|
|
|
|
+ if (!string.IsNullOrEmpty(request.Sort)&&request.Sort.Equals("AccumulativePrice"))
|
|
query.OrderByDesc(nameof(User.AccumulativePrice));
|
|
query.OrderByDesc(nameof(User.AccumulativePrice));
|
|
else
|
|
else
|
|
query.OrderByDesc(nameof(User.CreatedDate));
|
|
query.OrderByDesc(nameof(User.CreatedDate));
|