From 0bfecdc816f402851ff8ca62263d471a615cb784 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Fri, 14 Oct 2022 11:43:21 +0800 Subject: [PATCH] x --- .../Service/Reading/ClinicalDataSetService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Reading/ClinicalDataSetService.cs b/IRaCIS.Core.Application/Service/Reading/ClinicalDataSetService.cs index 87b745a81..b9bb0b28c 100644 --- a/IRaCIS.Core.Application/Service/Reading/ClinicalDataSetService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ClinicalDataSetService.cs @@ -196,7 +196,7 @@ namespace IRaCIS.Application.Services public async Task> GetSystemCriterionSelectList(SystemCriterionSelectQuery inQuery) { return await _repository.Where() - .WhereIf(string.IsNullOrEmpty(inQuery.CriterionName), t => t.CriterionName.Contains(inQuery.CriterionName)) + .WhereIf(!string.IsNullOrEmpty(inQuery.CriterionName), t => t.CriterionName.Contains(inQuery.CriterionName)) .WhereIf(inQuery.IsEnable != null, t => t.IsEnable == inQuery.IsEnable) .WhereIf(inQuery.IsCompleteConfig != null, t => t.IsCompleteConfig == inQuery.IsCompleteConfig) .Select(t => new SystemCriterionSelectDto() @@ -213,7 +213,7 @@ namespace IRaCIS.Application.Services public async Task> GetTrialCriterionSelectList(TrialCriterionSelectQuery inQuery) { return await _repository.Where(t => t.TrialId == inQuery.TrialId) - .WhereIf(string.IsNullOrEmpty(inQuery.CriterionName), t => t.CriterionName.Contains(inQuery.CriterionName)) + .WhereIf(!string.IsNullOrEmpty(inQuery.CriterionName), t => t.CriterionName.Contains(inQuery.CriterionName)) .WhereIf(inQuery.IsEnable != null, t => t.IsEnable == inQuery.IsEnable) .WhereIf(inQuery.IsCompleteConfig != null, t => t.IsCompleteConfig == inQuery.IsCompleteConfig) .Select(t => new TrialCriterionSelectDto()