|
@@ -39,11 +39,13 @@ namespace GxPress.Repository.Implement.AppChannel
|
|
|
/// 查询 获取MediaId
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- public async Task<IEnumerable<int>> GetAllAsync(int categoryId)
|
|
|
+ /// <returns>isCategory</returns>
|
|
|
+ public async Task<IEnumerable<int>> GetAllAsync(int categoryId,bool isCategory=true)
|
|
|
{
|
|
|
var query = Q.NewQuery();
|
|
|
query.Select(nameof(Entity.tede2.AppChannel.ChannelCategoryMedia.MediaId));
|
|
|
query.Where(nameof(Entity.tede2.AppChannel.ChannelCategoryMedia.ChannelCategoryId), categoryId);
|
|
|
+ query.Where(nameof(Entity.tede2.AppChannel.ChannelCategoryMedia.IsCategory), isCategory);
|
|
|
var result = await _repository.GetAllAsync<int>(query);
|
|
|
return result;
|
|
|
}
|