Uat_Study
he 2022-09-28 09:47:23 +08:00
parent 50e193fc16
commit 2d27d5ad68
1 changed files with 1 additions and 0 deletions

View File

@ -1304,6 +1304,7 @@ namespace IRaCIS.Application.Services
await AddSystemDataToTrila(inDto.TrialId);
var query = _readingQuestionCriterionTrialRepository.AsQueryable()
.Where(x => x.TrialId == inDto.TrialId)
.Where(x=>(x.ReadingQuestionCriterionSystemId!=null&&x.IsEnable)||x.ReadingQuestionCriterionSystemId==null)
.WhereIf(!inDto.CriterionName.IsNullOrEmpty(), x => x.CriterionName.Contains(inDto.CriterionName))
.ProjectTo<ReadingQuestionCriterionTrialView>(_mapper.ConfigurationProvider);