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 {