From a3e3c90b1f8a827a64c0d56c5e281d2d0c868a82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Sat, 9 May 2026 18:04:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E6=95=B0=E8=AE=B0=E5=BD=95=E5=8E=BB?= =?UTF-8?q?=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YD_Event.Application/Event/EventRecordService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/YD_Event.Application/Event/EventRecordService.cs b/YD_Event.Application/Event/EventRecordService.cs index 47793aa..42da748 100644 --- a/YD_Event.Application/Event/EventRecordService.cs +++ b/YD_Event.Application/Event/EventRecordService.cs @@ -119,8 +119,8 @@ public class EventRecordService : BaseService, ITransient .Select(g => { // 获取该赛事最早的报名记录作为主记录 var firstRecord = g.OrderBy(x => x.CreatedTime).First(); - // 收集该赛事的所有报名记录ID - var registrationIds = g.Select(x => x.RegistrationId).ToList(); + // 收集该赛事的所有报名记录ID(去重) + var registrationIds = g.Select(x => x.RegistrationId).Distinct().ToList(); return new EventRecordOutput {