From d1f6445df03984ddb053eac1a8ee04799a023b11 Mon Sep 17 00:00:00 2001 From: ceruIean Date: Mon, 22 Nov 2021 19:48:35 +0800 Subject: [PATCH] bugfix --- Pages/Students/Index.cshtml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Pages/Students/Index.cshtml.cs b/Pages/Students/Index.cshtml.cs index be0503f..6bfd213 100644 --- a/Pages/Students/Index.cshtml.cs +++ b/Pages/Students/Index.cshtml.cs @@ -100,7 +100,8 @@ namespace _2021_backend.Pages.Students foreach(var s in Context.Students) { - if (s.RegisterTime.CompareTo(new DateTime(2021, 11, 11)) < 0) s.Status = status.不通过; + if (s.RegisterTime.CompareTo(new DateTime(2021, 11, 11)) > 0) s.Status = status.不通过; + else if (s.Status == status.不通过) s.Status = status.刚报名; } Context.SaveChanges(); return Construct((int)pageId, errInfo);