|
@@ -361,8 +361,12 @@ namespace GxPress.Repository.Implement.Media
|
|
|
var result = await _repository.GetAsync(Q.Where(nameof(Entity.tede2.Media.Media.Id), mediaId).Where(nameof(Entity.tede2.Media.Media.IsChecked), true).Where(nameof(Entity.tede2.Media.Media.IsDelete), false));
|
|
|
return _mapper.Map<VideoMediaResult>(result);
|
|
|
}
|
|
|
-
|
|
|
- public async Task<IEnumerable<NavigationMediaResult>> GetNavigationMediaResults(IEnumerable<int> mediaLables)
|
|
|
+ /// <summary>
|
|
|
+ /// 根据
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="mediaIds"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public async Task<IEnumerable<NavigationMediaResult>> GetNavigationMediaResults(IEnumerable<int> mediaIds)
|
|
|
{
|
|
|
//获取媒体
|
|
|
var query = Q.NewQuery();
|
|
@@ -374,7 +378,7 @@ namespace GxPress.Repository.Implement.Media
|
|
|
query.Select(nameof(Entity.tede2.Media.Media.AutoNumber));
|
|
|
query.Select(nameof(Entity.tede2.Media.Media.Author));
|
|
|
query.Select(nameof(Entity.tede2.Media.Media.MediaType));
|
|
|
- query.WhereIn(nameof(Entity.tede2.Media.Media.LableId), mediaLables);
|
|
|
+ query.WhereIn(nameof(Entity.tede2.Media.Media.Id), mediaIds);
|
|
|
query.Where(nameof(Entity.tede2.Media.Media.IsChecked), true);
|
|
|
query.Where(nameof(Entity.tede2.Media.Media.IsDelete), false);
|
|
|
query.OrderByDesc(nameof(Entity.tede2.Media.Media.IsTop));
|