From 7a1b2ab46d5d63120654216bd6f0dc52871137e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Wed, 23 Sep 2026 10:36:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E9=A1=B9=E7=9B=AE=E5=8F=AA?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=BD=93=E5=89=8D=E5=87=BA=E5=9C=BA=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YD_Event.Application/Judge/JudgeScoringController.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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,