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

+2 -1
View File
@@ -1,3 +1,4 @@
import { activeStudentWhere } from '../../lib/students.js';
import {
dayKeyLocal,
type AiActionKind,
@@ -267,7 +268,7 @@ async function buildPreview(
const student =
studentName && classId
? await prisma.student.findFirst({
where: { classId, name: studentName },
where: { classId, name: studentName, ...activeStudentWhere() },
select: { id: true, name: true },
})
: null;