bugfix
continuous-integration/drone/push Build is passing Details

master
ceruIean 2021-11-22 19:48:35 +08:00
parent b427969501
commit d1f6445df0
1 changed files with 2 additions and 1 deletions

View File

@ -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);