From 182e89158454d1a60cb0adebc9f51d40d2fed540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=82=A5=E7=BE=8A?= <1048382248@qq.com> Date: Tue, 9 Dec 2025 11:05:34 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E5=86=99=E5=85=A5?= =?UTF-8?q?=E9=80=89=E7=A7=91=E6=97=B6=E5=80=99=E6=97=A0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Learn.Archives.API/Controllers/StudentController.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Learn.Archives.API/Controllers/StudentController.cs b/Learn.Archives.API/Controllers/StudentController.cs index a4d6d0f..2a6bd21 100644 --- a/Learn.Archives.API/Controllers/StudentController.cs +++ b/Learn.Archives.API/Controllers/StudentController.cs @@ -498,7 +498,14 @@ namespace Learn.Archives.API.Controllers }, ex => { throw ex; }); } //写入选科方向 + userCenterUpdate = userCenterUpdate.Where(s => + new object[] { s.Phone, + s.GLSubject, + s.GSubject1, + s.GSubject2,} + .Any(x => !(x == default || x == null))).ToList(); if (userCenterUpdate.Count > 0) + { await userService.AsUpdateable(userCenterUpdate) .UpdateColumns(s => new { @@ -511,6 +518,7 @@ namespace Learn.Archives.API.Controllers .IgnoreColumns(ignoreAllNullColumns: true, ignoreAllDefaultValue: true) .WhereColumns(it => new { it.Id }) .ExecuteCommandAsync(); + } return Ok(); } -- 2.40.1 From a39fa1b34f41db77caba0ebf9badc59b2426aabd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=82=A5=E7=BE=8A?= <1048382248@qq.com> Date: Tue, 21 Apr 2026 16:29:17 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=8E=92=E9=99=A4?= =?UTF-8?q?=E6=97=A0=E5=B0=B1=E8=AF=BB=E6=83=85=E5=86=B5=E7=9A=84=E5=AD=A6?= =?UTF-8?q?=E7=94=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Learn.Archives.API/Controllers/ExamClassInfoController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Learn.Archives.API/Controllers/ExamClassInfoController.cs b/Learn.Archives.API/Controllers/ExamClassInfoController.cs index b93c4e9..c7ff6c1 100644 --- a/Learn.Archives.API/Controllers/ExamClassInfoController.cs +++ b/Learn.Archives.API/Controllers/ExamClassInfoController.cs @@ -96,7 +96,7 @@ namespace Learn.Archives.API.Controllers c.GradeLevel == gradeInfo.GradeLevel && c.GraduationYear == gradeInfo.GradeYear && u.UserType == UserTypeEnum.学生.GetHashCode() && - s.Enable && p.Enable && pr.Enable && + s.Enable && p.Enable && p.Enable && pr.Status == PositionRelationStatusEnum.就读任职 && !p.DeleteState && !c.DeleteState && !u.DeleteState && !s.DeleteState) .Select((s, c, p, pr, u) => new { -- 2.40.1 From f80ace8af8bd31d65e6d4395a823dad92f66fd60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=82=A5=E7=BE=8A?= <1048382248@qq.com> Date: Tue, 21 Apr 2026 16:31:22 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=8E=92=E9=99=A4?= =?UTF-8?q?=E6=97=A0=E5=B0=B1=E8=AF=BB=E6=83=85=E5=86=B5=E7=9A=84=E5=AD=A6?= =?UTF-8?q?=E7=94=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Learn.Archives.API/Controllers/ExamClassInfoController.cs | 2 +- Learn.Archives.API/Controllers/StudentController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Learn.Archives.API/Controllers/ExamClassInfoController.cs b/Learn.Archives.API/Controllers/ExamClassInfoController.cs index c7ff6c1..18c23b3 100644 --- a/Learn.Archives.API/Controllers/ExamClassInfoController.cs +++ b/Learn.Archives.API/Controllers/ExamClassInfoController.cs @@ -96,7 +96,7 @@ namespace Learn.Archives.API.Controllers c.GradeLevel == gradeInfo.GradeLevel && c.GraduationYear == gradeInfo.GradeYear && u.UserType == UserTypeEnum.学生.GetHashCode() && - s.Enable && p.Enable && p.Enable && pr.Status == PositionRelationStatusEnum.就读任职 && + s.Enable && p.Enable && pr.Enable && pr.Status == PositionRelationStatusEnum.就读任职 && !p.DeleteState && !c.DeleteState && !u.DeleteState && !s.DeleteState) .Select((s, c, p, pr, u) => new { diff --git a/Learn.Archives.API/Controllers/StudentController.cs b/Learn.Archives.API/Controllers/StudentController.cs index 2a6bd21..27abbab 100644 --- a/Learn.Archives.API/Controllers/StudentController.cs +++ b/Learn.Archives.API/Controllers/StudentController.cs @@ -380,7 +380,7 @@ namespace Learn.Archives.API.Controllers s.Id == schoolId && u.UserType == UserTypeEnum.学生.GetHashCode() && batch.Contains(u.RealName) && - s.Enable && p.Enable && pr.Enable && + s.Enable && p.Enable && pr.Enable && pr.Status == PositionRelationStatusEnum.就读任职&& !p.DeleteState && !c.DeleteState && !u.DeleteState && !s.DeleteState) .Select((s, c, p, pr, u) => new { -- 2.40.1