diff --git a/IRaCIS.Core.Application/Service/Allocation/TaskConsistentRuleService.cs b/IRaCIS.Core.Application/Service/Allocation/TaskConsistentRuleService.cs index 0d26a06b7..dfd5039f7 100644 --- a/IRaCIS.Core.Application/Service/Allocation/TaskConsistentRuleService.cs +++ b/IRaCIS.Core.Application/Service/Allocation/TaskConsistentRuleService.cs @@ -275,7 +275,7 @@ namespace IRaCIS.Core.Application.Service { var query = from enroll in _repository.Where(t => t.TrialId == trialId) join user in _repository.Where() on enroll.DoctorId equals user.DoctorId - join taskConsistentRule in _repository.Where() on user.Id equals taskConsistentRule.AnalysisDoctorUserId into c + join taskConsistentRule in _repository.Where(t=>t.TrialId==addOrEdit.TrialId) on user.Id equals taskConsistentRule.AnalysisDoctorUserId into c from taskConsistentRule in c.DefaultIfEmpty() select new {