@@ -100,7 +100,8 @@ namespace _2021_backend.Pages.Students
|
|||||||
|
|
||||||
foreach(var s in Context.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();
|
Context.SaveChanges();
|
||||||
return Construct((int)pageId, errInfo);
|
return Construct((int)pageId, errInfo);
|
||||||
|
|||||||
Reference in New Issue
Block a user