|
@@ -196,8 +196,10 @@ namespace GxPress.Repository.Implement.Media
|
|
|
//排序
|
|
|
if (string.IsNullOrEmpty(request.Sort))
|
|
|
query.OrderByDesc(nameof(Entity.tede2.Media.Media.CreatedDate));
|
|
|
- else
|
|
|
+ else if (request.Sort.Equals("SellAmount"))
|
|
|
query.OrderByDesc(nameof(Entity.tede2.Media.Media.SellAmount));
|
|
|
+ else if (request.Sort.Equals("ReadCount"))
|
|
|
+ query.OrderByDesc(nameof(Entity.tede2.Media.Media.ReadCount));
|
|
|
var item = await _repository.GetAllAsync(query.ForPage(request.Page, request.PerPage));
|
|
|
result.Items = item;
|
|
|
return result;
|