From f40f094139694bb564bba9071197ca7ec11b137e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=82=A5=E7=BE=8A?= <1048382248@qq.com> Date: Fri, 5 Dec 2025 17:19:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=9C=AA=E8=83=BD?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=AD=A6=E6=A0=A1=E5=AD=A6=E7=94=9F=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E6=97=B6=E6=9C=AA=E6=B7=BB=E5=8A=A0=E5=B9=B4=E7=BA=A7?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E9=87=8D=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Learn.Archives.API/Controllers/ExamClassInfoController.cs | 4 ++-- Learn.Archives.API/appsettings.Production.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Learn.Archives.API/Controllers/ExamClassInfoController.cs b/Learn.Archives.API/Controllers/ExamClassInfoController.cs index e3f022b..aed1949 100644 --- a/Learn.Archives.API/Controllers/ExamClassInfoController.cs +++ b/Learn.Archives.API/Controllers/ExamClassInfoController.cs @@ -100,7 +100,7 @@ namespace Learn.Archives.API.Controllers !p.DeleteState && !c.DeleteState && !u.DeleteState && !s.DeleteState) .Select((s, c, p, pr, u) => new { - Name = c.Name + u.RealName, + Name =p.GradeLevel+p.GraduationYear.ToString()+ c.Name + u.RealName, u.Id, }).ToDictionaryAsync(s => s.Name, s => s.Id); //处理学生成绩数据 @@ -122,7 +122,7 @@ namespace Learn.Archives.API.Controllers errorExcelInfo.Add(s); return null; } - var name = s.Class + s.Student; + var name = grade.GradeLevel+ grade.GradeYear+ s.Class + s.Student; if (!userDic.ContainsKey(name)) { s.Error = "未能匹配到年级班级下对应的学生"; diff --git a/Learn.Archives.API/appsettings.Production.json b/Learn.Archives.API/appsettings.Production.json index 26a7f01..2f0a12c 100644 --- a/Learn.Archives.API/appsettings.Production.json +++ b/Learn.Archives.API/appsettings.Production.json @@ -8,7 +8,7 @@ "AppConfig": { "ID": 2, //程序唯一值 "Redis": { - "ConnectionString": "yxjy-redis-in.23544.com:6379,password=MY50BKM1i3z8Vcz6V7c2,defaultDatabase=60", + "ConnectionString": "r-2vc07uq6kgm580hxeu.redis.cn-chengdu.rds.aliyuncs.com:6379,password=r-2vc07uq6kgm580hxeu:JyFQa8MeZ4ndxVbdhUc6,defaultDatabase=3" }, "DB": { "ConnectionString": "AllowLoadLocalInfile=true;Server=rm-2vc20nd3d11g0oh6g2o.rwlb.cn-chengdu.rds.aliyuncs.com;User ID=marking;Password=poiuytPOIUYT098765)(*&^%;Port=3306;Database=learn.archives;CharSet=utf8mb4;pooling=true;SslMode=None",