feat(server): 统一课表解析并完善权限范围与年度升级

This commit is contained in:
LoveChengke committed 2026-10-17 09:34:23 +08:00
1 parent 66ef878a71
commit 4dc824c283
54 files changed
+2401 -625

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
/** 所有在读入口共用;归档/转出专页显式读取历史状态。 */
export function activeStudentWhere() {
return { status: { notIn: ['transferred', 'inactive'] } };
}
export function isActiveStudent(student: { status: string }) {
return !activeStudentWhere().status.notIn.includes(student.status);
}