升级
This commit is contained in:
1 parent
cec56564b5
commit
ae075bda6d
32 files changed
+10052
-90
No files matched your search
@@ -106,6 +106,8 @@ public sealed class StudentStatusChangesController(
|
||||
var userId = currentUserDataScope.Current.UserId;
|
||||
var student = await db.Students.FirstOrDefaultAsync(x => x.UserId == userId, token);
|
||||
if (student is null) return ConflictProblem("当前账号未关联学生档案。");
|
||||
if (student.IsArchived)
|
||||
return ConflictProblem("学生档案已归档,不能发起新的学籍异动。");
|
||||
var target = request.Type switch
|
||||
{
|
||||
StudentStatusChangeType.Suspension when student.Status == StudentStatus.Active =>
|
||||
|
||||
Reference in new issue
Block a user