From b475fd6b08a336374df7bac37aeef81cf96fcd61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Thu, 22 Oct 2026 08:43:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=A3=80=E5=BD=95?= =?UTF-8?q?=E6=8C=89=E7=85=A7=E7=A7=A9=E5=BA=8F=E5=86=8C=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YD_Event.Application/Client/CheckinScheduleService.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/YD_Event.Application/Client/CheckinScheduleService.cs b/YD_Event.Application/Client/CheckinScheduleService.cs index 82134e4..45053ff 100644 --- a/YD_Event.Application/Client/CheckinScheduleService.cs +++ b/YD_Event.Application/Client/CheckinScheduleService.cs @@ -173,17 +173,13 @@ public class CheckinScheduleService : ITransient var sessionOrderMap = sessions.ToDictionary( x => x.Id, x => GetImportedSessionOrder(x.SessionName, GetSessionOrder(x.SessionNo))); - var orderedSessions = sessions - .OrderBy(x => sessionOrderMap[x.Id]) - .ThenBy(x => venueMap.GetValueOrDefault(x.VenueId)?.Sort ?? int.MaxValue) - .ThenBy(x => x.SessionNo) - .ToList(); var sessionMap = sessions.ToDictionary(x => x.Id); + // 秩序册允许不同比赛日重复从“第1场”开始,不能再按场次数字排序。 + // 导入时出场记录 ID 按 Excel 行顺序生成,因此按 ID 即为原始导入顺序。 var units = entries .Where(x => sessionMap.ContainsKey(x.SessionId)) - .OrderBy(x => sessionOrderMap[x.SessionId]) - .ThenBy(x => x.PlayOrder) + .OrderBy(x => x.Id) .Select((entry, index) => { var session = sessionMap[entry.SessionId];