From 8d8865cef781fdb6182ece2b6c7b8b60f0c00e63 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Mon, 30 Jun 2025 14:28:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=85=E7=89=87=E4=BA=BA=E5=85=A5=E9=A1=B9?= =?UTF-8?q?=E5=90=8C=E6=84=8F=E8=AE=B0=E5=BD=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/Doctor/DoctorListService.cs | 2 -- 1 file changed, 2 deletions(-) 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)