diff --git a/IRaCIS.Core.Application/Service/Allocation/TaskConsistentRuleService.cs b/IRaCIS.Core.Application/Service/Allocation/TaskConsistentRuleService.cs index 81e9a32eb..e3831ebe9 100644 --- a/IRaCIS.Core.Application/Service/Allocation/TaskConsistentRuleService.cs +++ b/IRaCIS.Core.Application/Service/Allocation/TaskConsistentRuleService.cs @@ -247,8 +247,8 @@ namespace IRaCIS.Core.Application.Service { var taskConsistentRuleQueryable = _taskConsistentRuleRepository.Where(t => t.TrialId == inQuery.TrialId) - .WhereIf(inQuery.IsSelfAnalysis, t => t.CompareDoctorUserId != null) - .WhereIf(inQuery.IsSelfAnalysis == false, t => t.CompareDoctorUserId == null) + .WhereIf(inQuery.IsSelfAnalysis, t => t.CompareDoctorUserId == null) + .WhereIf(inQuery.IsSelfAnalysis == false, t => t.CompareDoctorUserId != null) .ProjectTo(_mapper.ConfigurationProvider); return await taskConsistentRuleQueryable.ToListAsync();