|
@@ -42,11 +42,11 @@ namespace GxPress.Repository.Implement.AppChannel
|
|
|
/// 查询 获取MediaId
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- public async Task<IEnumerable<ChannelCategoryResult>> GetAllAsync(AppChannelConst channelTypeValye)
|
|
|
+ public async Task<IEnumerable<ChannelCategoryResult>> GetAllAsync(int appChannelId)
|
|
|
{
|
|
|
var result = new List<ChannelCategoryResult>();
|
|
|
var query = Q.NewQuery();
|
|
|
- query.Where(nameof(Entity.tede2.AppChannel.ChannelCategory.ChannelTypeValye), channelTypeValye);
|
|
|
+ query.Where(nameof(Entity.tede2.AppChannel.ChannelCategory.AppChannelId), appChannelId);
|
|
|
var items = await _repository.GetAllAsync<ChannelCategoryResult>(query);
|
|
|
result.AddRange(items.Where(n => n.ParentId == 0));
|
|
|
foreach (var item in result)
|