diff --git a/IRaCIS.Core.Application/Service/Doctor/DoctorListService.cs b/IRaCIS.Core.Application/Service/Doctor/DoctorListService.cs index 6440c6423..819173880 100644 --- a/IRaCIS.Core.Application/Service/Doctor/DoctorListService.cs +++ b/IRaCIS.Core.Application/Service/Doctor/DoctorListService.cs @@ -302,8 +302,6 @@ namespace IRaCIS.Core.Application.Service .Where(x => x.TrialId == inQuery.TrialId && x.EnrollStatus >= EnrollStatus.InviteIntoGroup); var enrollStateList = await query .ProjectTo(_mapper.ConfigurationProvider).ToListAsync(); - enrollStateList = enrollStateList.GroupBy(e => e.DoctorId) - .Select(g => g.OrderByDescending(e => e.OptTime).FirstOrDefault()).ToList(); enrollStateList = enrollStateList .WhereIf(inQuery.OptStartTime != null, x => x.OptTime >= inQuery.OptStartTime)