d
This commit is contained in:
parent
0d8a8d43f8
commit
c49132d20b
@ -191,7 +191,7 @@ namespace YD_WeChatApplet.Api.Services.Impl
|
||||
/// <returns></returns>
|
||||
public async Task<PageDataDto<CurricularListDto>> CurricularList(CurricularDto dto)
|
||||
{
|
||||
var query = _sportsContext.Curricular;
|
||||
var query = _sportsContext.Curricular.Where(x => x.TaxonomyId == dto.TaxonomyId);
|
||||
|
||||
var totalCount = await query.CountAsync();
|
||||
|
||||
@ -204,8 +204,7 @@ namespace YD_WeChatApplet.Api.Services.Impl
|
||||
CoverImage = x.CoverImage,
|
||||
Hits = x.Hits,
|
||||
Url = x.Url
|
||||
}).Where(x => x.TaxonomyId == dto.TaxonomyId)
|
||||
.Skip((dto.PageIndex - 1) * dto.PageSize)
|
||||
}).Skip((dto.PageIndex - 1) * dto.PageSize)
|
||||
.Take(dto.PageSize)
|
||||
.ToListAsync();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user