This commit is contained in:
he
2022-09-16 11:51:03 +08:00
parent 6bb621b8b8
commit 8cb060d9e0
3 changed files with 23 additions and 8 deletions
@@ -676,10 +676,10 @@ namespace IRaCIS.Application.Services
public async Task<PageOutput<ReadingQuestionCriterionSystemView>> GetReadingQuestionCriterionSystemList(ReadingQuestionCriterionSystemViewInDto inDto)
{
//await AddSystemQuestionCriterion();
var query= _readingQuestionCriterionSystemRepository.AsQueryable()
var query = _readingQuestionCriterionSystemRepository.AsQueryable()
.WhereIf(!inDto.CriterionName.IsNullOrEmpty(), x => x.CriterionName.Contains(inDto.CriterionName))
.ProjectTo<ReadingQuestionCriterionSystemView>(_mapper.ConfigurationProvider)
.Where(x=>x.IsEnable);
.ProjectTo<ReadingQuestionCriterionSystemView>(_mapper.ConfigurationProvider);
return await query.ToPagedListAsync(inDto.PageIndex, inDto.PageSize, inDto.SortField.IsNullOrEmpty() ? nameof(ReadingQuestionCriterionSystemView.ShowOrder) : inDto.SortField,
inDto.Asc);
}