Uat_Study
he 2022-08-12 14:22:28 +08:00
parent 136414848a
commit ccf0df5cb5
2 changed files with 4 additions and 1 deletions

View File

@ -72,6 +72,9 @@ namespace IRaCIS.Core.Application.Contracts
public bool? IsEnable { get; set; }
public Guid? TrialId { get; set; }
}
///<summary> QCQuestionAddOrEdit 列表查询参数模型</summary>

View File

@ -92,7 +92,7 @@ namespace IRaCIS.Core.Application.Contracts
{
var QCQuestionQueryable = _qcQuestionRepository
.Where(x=>x.IsEnable)
.WhereIf(queryQCQuestionConfigure.IsEnable != null,x=>x.IsEnable== queryQCQuestionConfigure.IsEnable)
.WhereIf(!string.IsNullOrWhiteSpace(queryQCQuestionConfigure.QuestionName), t => t.QuestionName.Contains(queryQCQuestionConfigure.QuestionName))
.WhereIf(!string.IsNullOrWhiteSpace(queryQCQuestionConfigure.Type), t => t.Type.Contains(queryQCQuestionConfigure.Type))
.ProjectTo<QCQuestionConfigureView>(_mapper.ConfigurationProvider);