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