2026-10-17 09:34:23 +08:00
|
|
|
/** 所有在读入口共用;归档/转出专页显式读取历史状态。 */
|
|
|
|
|
export function activeStudentWhere() {
|
2026-10-23 22:55:21 +08:00
|
|
|
return { status: 'active', archivedYearId: null };
|
2026-10-17 09:34:23 +08:00
|
|
|
}
|
2026-10-23 22:55:21 +08:00
|
|
|
export function isActiveStudent(student: { status: string; archivedYearId?: string | null }) {
|
|
|
|
|
return student.status === 'active' && !student.archivedYearId;
|
2026-10-17 09:34:23 +08:00
|
|
|
}
|