修改
This commit is contained in:
@@ -92,9 +92,9 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
{
|
||||
|
||||
var QCQuestionQueryable = _qcQuestionRepository
|
||||
.Where(x=>x.IsEnable)
|
||||
.WhereIf(!string.IsNullOrWhiteSpace(queryQCQuestionConfigure.QuestionName), t => t.QuestionName.Contains(queryQCQuestionConfigure.QuestionName))
|
||||
.WhereIf(!string.IsNullOrWhiteSpace(queryQCQuestionConfigure.Type), t => t.Type.Contains(queryQCQuestionConfigure.Type))
|
||||
.WhereIf(queryQCQuestionConfigure.IsEnable != null, t => t.IsEnable == queryQCQuestionConfigure.IsEnable)
|
||||
.ProjectTo<QCQuestionConfigureView>(_mapper.ConfigurationProvider);
|
||||
|
||||
return await QCQuestionQueryable.ToListAsync();
|
||||
|
||||
Reference in New Issue
Block a user