From 0eb9c90c31c2556b6a2a536302044a1f707575ff Mon Sep 17 00:00:00 2001 From: ltx <1006158920@qq.com> Date: Thu, 22 Oct 2026 11:53:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A1=A5=E9=BD=90=E5=A3=B9=E8=B7=AFAI?= =?UTF-8?q?=E8=BF=90=E5=8A=A8=E7=AB=99=E5=85=A8=E9=83=A8=E8=AF=BE=E7=9B=AE?= =?UTF-8?q?=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根据提供的六张课目编号截图,将 CourseNames 补齐为 63 个项目,覆盖俯卧撑、仰卧起坐、跑步、球类、互动项目和体测项目。未知编号仍保留待确认课目的兜底显示,不修改实体数据类型、表结构或数据。 将项目名称筛选改为精确匹配,避免选择深蹲时混入深蹲跳等名称相近的记录。 验证:后端 Debug 构建成功(0 错误);与前端下拉选项核对均为 63 个项目。 --- VOL.Ai/Services/AiSportsStationService.cs | 47 ++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/VOL.Ai/Services/AiSportsStationService.cs b/VOL.Ai/Services/AiSportsStationService.cs index fb64b74..fa24675 100644 --- a/VOL.Ai/Services/AiSportsStationService.cs +++ b/VOL.Ai/Services/AiSportsStationService.cs @@ -18,12 +18,22 @@ namespace VOL.Ai.Services private static readonly Dictionary CourseNames = new() { + { 1, "俯卧撑" }, + { 2, "仰卧起坐" }, { 3, "引体向上" }, { 7, "立定跳远" }, { 8, "跳绳" }, { 9, "开合跳" }, { 10, "高抬腿" }, { 11, "深蹲" }, + { 12, "50米跑" }, + { 13, "100米跑" }, + { 14, "800米跑" }, + { 15, "1000米跑" }, + { 16, "3000米跑" }, + { 20, "50米×8" }, + { 21, "篮球绕杆" }, + { 22, "足球绕杆" }, { 23, "坐位体前屈" }, { 24, "单脚跳" }, { 25, "动态臀桥" }, @@ -34,6 +44,41 @@ namespace VOL.Ai.Services { 30, "石头剪刀布" }, { 31, "变脸" }, { 32, "打钉子" }, + { 33, "击鼓传花" }, + { 34, "踢足球" }, + { 35, "手脚并用" }, + { 36, "踢毽子" }, + { 37, "风火轮" }, + { 38, "顺序摸数字" }, + { 39, "俄罗斯方块" }, + { 40, "诗词满腹" }, + { 41, "单词大王" }, + { 42, "数学王者" }, + { 43, "音乐大师" }, + { 44, "历史小生" }, + { 45, "科学达人" }, + { 46, "纵跳摸高" }, + { 47, "半蹲跳" }, + { 48, "深蹲跳" }, + { 49, "侧向蹲起" }, + { 50, "篮球单手运球" }, + { 51, "篮球双手交替运球" }, + { 52, "身体绕球" }, + { 53, "足球踩球" }, + { 54, "足球颠球" }, + { 55, "足球踩单车" }, + { 56, "排球垫球" }, + { 57, "排球自传挑战" }, + { 60, "实心球" }, + { 61, "阳光跑" }, + { 62, "健身长拳" }, + { 63, "200米跑" }, + { 64, "400米×4" }, + { 65, "400米跑" }, + { 66, "6分钟跑" }, + { 67, "9分钟跑" }, + { 68, "1500米跑" }, + { 69, "60米跑" }, { 1001, "体重系数(BMI)" }, { 1002, "肺活量" } }; @@ -144,7 +189,7 @@ namespace VOL.Ai.Services .ToListAsync(); if (!string.IsNullOrWhiteSpace(projectName)) - rows = rows.Where(x => GetCourseName(x.CourseId).Contains(projectName)).ToList(); + rows = rows.Where(x => GetCourseName(x.CourseId) == projectName).ToList(); var total = rows.Count; var datas = rows