diff --git a/YD_Event.Application/Judge/JudgeScoringController.cs b/YD_Event.Application/Judge/JudgeScoringController.cs index f70cfc8..2a2b980 100644 --- a/YD_Event.Application/Judge/JudgeScoringController.cs +++ b/YD_Event.Application/Judge/JudgeScoringController.cs @@ -352,6 +352,10 @@ public class JudgeScoringController : IDynamicApiController var scoreSheetAllowsEditing = submitted == null || correction != null; var canEdit = stageAllowsScoring && scoreSheetAllowsEditing; var members = await LoadMemberNamesAsync(entry, ctx.Scope); + // 个人项目以参赛记录解析出的当前运动员为准,兼容历史出场快照误存单位名的情况。 + var participantName = ctx.Scope == ScoreScope.Personal && members.Count == 1 + ? members[0] + : DisplayParticipantName(entry, ctx.Scope); var venue = await _venueRepository.GetFirstAsync(x => x.Id == ctx.Session.VenueId); var nextVersion = (submitted?.SheetVersion ?? 0) + 1; @@ -382,7 +386,7 @@ public class JudgeScoringController : IDynamicApiController entry.GroupName, venue?.VenueName ?? "-"), EntryNo = entry.EntryNo, - ParticipantName = DisplayParticipantName(entry, ctx.Scope), + ParticipantName = participantName, MemberNames = members, JudgeRole = assignment.JudgeRole, JudgeRoleType = roleType,