-- Seed data generated from 暑期班课表 更新-2.xlsx
-- Source dates: 2025-07-20 through 2025-08-16.
-- Idempotency: stable records are upserted; the source-owned summer schedule/exam/duty range is replaced.

SET NAMES utf8mb4;
USE `dorm_billing_v2`;
SET FOREIGN_KEY_CHECKS = 1;
START TRANSACTION;

INSERT INTO `organizations` (`public_id`, `code`, `name`, `is_host`, `color`, `notes`, `status`)
VALUES ('00000000-0000-7000-8000-000000000001', 'HOST', '本机构', 1, '#1677ff', '系统默认运营主体', 'active')
ON DUPLICATE KEY UPDATE `name`=VALUES(`name`), `is_host`=1, `status`='active';

INSERT INTO `permissions` (`code`, `name`, `group`) VALUES
('schedule:view', '查看排课', 'schedule'),
('attendance:view', '查看考勤', 'attendance'),
('attendance:create', '新增考勤', 'attendance'),
('attendance:self-edit', '编辑任教班级考勤', 'attendance-scope'),
('teacher-workspace:view', '查看教师工作台', 'teacher-workspace'),
('notification:view', '查看通知', 'notification'),
('exam:view', '查看和录入考试成绩', 'exam')
ON DUPLICATE KEY UPDATE `name`=VALUES(`name`), `group`=VALUES(`group`);

INSERT INTO `roles` (`name`, `code`, `description`, `is_system`, `status`) VALUES
('超级管理员', 'super_admin', '系统初始化、应急维护和全局权限处理', 1, 1),
('任课老师', 'teacher', '查看自己的排课、今日课程和任教班级考勤', 1, 1)
ON DUPLICATE KEY UPDATE `name`=VALUES(`name`), `description`=VALUES(`description`), `is_system`=1, `status`=1;

INSERT INTO `users` (`username`, `password_hash`, `name`, `is_active`, `is_archived`)
VALUES ('admin', '$2b$10$/uXpQttv.Ud7sfUeZmVta./ZwMjHF59JbO4scA6pnHDtUZo1EMzA2', '管理员', 1, 0)
ON DUPLICATE KEY UPDATE `name`='管理员', `is_active`=1, `is_archived`=0;

INSERT IGNORE INTO `user_roles` (`user_id`, `role_id`)
SELECT u.id, r.id FROM `users` u JOIN `roles` r ON r.code='super_admin' WHERE u.username='admin';

INSERT IGNORE INTO `role_permissions` (`role_id`, `permission_id`)
SELECT r.id, p.id FROM `roles` r CROSS JOIN `permissions` p WHERE r.code='super_admin';
INSERT IGNORE INTO `role_permissions` (`role_id`, `permission_id`)
SELECT r.id, p.id FROM `roles` r JOIN `permissions` p ON p.code IN ('schedule:view','attendance:view','attendance:create','attendance:self-edit','teacher-workspace:view','notification:view') WHERE r.code='teacher';

INSERT INTO `users` (`username`, `password_hash`, `name`, `is_active`, `is_archived`) VALUES
('summer_teacher_01', '$2b$10$/uXpQttv.Ud7sfUeZmVta./ZwMjHF59JbO4scA6pnHDtUZo1EMzA2', '柴艳', 1, 0),
('summer_teacher_02', '$2b$10$/uXpQttv.Ud7sfUeZmVta./ZwMjHF59JbO4scA6pnHDtUZo1EMzA2', '陈奕静', 1, 0),
('summer_teacher_03', '$2b$10$/uXpQttv.Ud7sfUeZmVta./ZwMjHF59JbO4scA6pnHDtUZo1EMzA2', '郭婧', 1, 0),
('summer_teacher_04', '$2b$10$/uXpQttv.Ud7sfUeZmVta./ZwMjHF59JbO4scA6pnHDtUZo1EMzA2', '郭馨', 1, 0),
('summer_teacher_05', '$2b$10$/uXpQttv.Ud7sfUeZmVta./ZwMjHF59JbO4scA6pnHDtUZo1EMzA2', '李鸿图', 1, 0),
('summer_teacher_06', '$2b$10$/uXpQttv.Ud7sfUeZmVta./ZwMjHF59JbO4scA6pnHDtUZo1EMzA2', '师哲', 1, 0),
('summer_teacher_07', '$2b$10$/uXpQttv.Ud7sfUeZmVta./ZwMjHF59JbO4scA6pnHDtUZo1EMzA2', '王贵晶', 1, 0),
('summer_teacher_08', '$2b$10$/uXpQttv.Ud7sfUeZmVta./ZwMjHF59JbO4scA6pnHDtUZo1EMzA2', '王家欣', 1, 0),
('summer_teacher_09', '$2b$10$/uXpQttv.Ud7sfUeZmVta./ZwMjHF59JbO4scA6pnHDtUZo1EMzA2', '王沐妍', 1, 0),
('summer_teacher_10', '$2b$10$/uXpQttv.Ud7sfUeZmVta./ZwMjHF59JbO4scA6pnHDtUZo1EMzA2', '杨婷', 1, 0),
('summer_teacher_11', '$2b$10$/uXpQttv.Ud7sfUeZmVta./ZwMjHF59JbO4scA6pnHDtUZo1EMzA2', '袁嘉琪', 1, 0),
('summer_teacher_12', '$2b$10$/uXpQttv.Ud7sfUeZmVta./ZwMjHF59JbO4scA6pnHDtUZo1EMzA2', '张永杰', 1, 0)
ON DUPLICATE KEY UPDATE `password_hash`=VALUES(`password_hash`), `name`=VALUES(`name`), `is_active`=1, `is_archived`=0;

INSERT IGNORE INTO `user_roles` (`user_id`, `role_id`)
SELECT u.id, r.id FROM `users` u CROSS JOIN `roles` r WHERE u.username LIKE 'summer_teacher_%' AND r.code='teacher';

INSERT INTO `classes` (`name`, `code`, `class_type`, `start_date`, `end_date`, `status`, `max_students`, `notes`, `is_archived`) VALUES
('暑期1班', 'SUMMER_2025_1', 'culture', '2025-07-20', '2025-08-16', 'active', 0, '来源: 暑期班课表 更新-2.xlsx; 教室 212', 0),
('暑期2班', 'SUMMER_2025_2', 'culture', '2025-07-20', '2025-08-16', 'active', 0, '来源: 暑期班课表 更新-2.xlsx; 教室 210', 0),
('暑期3班', 'SUMMER_2025_3', 'culture', '2025-07-20', '2025-08-16', 'active', 0, '来源: 暑期班课表 更新-2.xlsx; 教室 301', 0),
('暑期4班', 'SUMMER_2025_4', 'culture', '2025-07-20', '2025-08-16', 'active', 0, '来源: 暑期班课表 更新-2.xlsx; 教室 208', 0),
('暑期5班', 'SUMMER_2025_5', 'culture', '2025-07-20', '2025-08-16', 'active', 0, '来源: 暑期班课表 更新-2.xlsx; 教室 211', 0),
('暑期6班', 'SUMMER_2025_6', 'culture', '2025-07-20', '2025-08-16', 'active', 0, '来源: 暑期班课表 更新-2.xlsx; 教室 209', 0),
('暑期7班', 'SUMMER_2025_7', 'culture', '2025-07-20', '2025-08-16', 'active', 0, '来源: 暑期班课表 更新-2.xlsx; 教室 207', 0)
ON DUPLICATE KEY UPDATE `name`=VALUES(`name`), `class_type`=VALUES(`class_type`), `start_date`=VALUES(`start_date`), `end_date`=VALUES(`end_date`), `status`='active', `notes`=VALUES(`notes`), `is_archived`=0;

INSERT INTO `classrooms` (`name`, `building`, `floor`, `capacity`, `room_type`, `status`, `notes`)
SELECT '207', NULL, 2, 30, '大', 'available', '来源: 暑期班课表 更新-2.xlsx'
WHERE NOT EXISTS (SELECT 1 FROM `classrooms` WHERE `name`='207');
UPDATE `classrooms` SET `floor`=2, `status`='available' WHERE `name`='207';

INSERT INTO `classrooms` (`name`, `building`, `floor`, `capacity`, `room_type`, `status`, `notes`)
SELECT '208', NULL, 2, 30, '大', 'available', '来源: 暑期班课表 更新-2.xlsx'
WHERE NOT EXISTS (SELECT 1 FROM `classrooms` WHERE `name`='208');
UPDATE `classrooms` SET `floor`=2, `status`='available' WHERE `name`='208';

INSERT INTO `classrooms` (`name`, `building`, `floor`, `capacity`, `room_type`, `status`, `notes`)
SELECT '209', NULL, 2, 30, '大', 'available', '来源: 暑期班课表 更新-2.xlsx'
WHERE NOT EXISTS (SELECT 1 FROM `classrooms` WHERE `name`='209');
UPDATE `classrooms` SET `floor`=2, `status`='available' WHERE `name`='209';

INSERT INTO `classrooms` (`name`, `building`, `floor`, `capacity`, `room_type`, `status`, `notes`)
SELECT '210', NULL, 2, 30, '大', 'available', '来源: 暑期班课表 更新-2.xlsx'
WHERE NOT EXISTS (SELECT 1 FROM `classrooms` WHERE `name`='210');
UPDATE `classrooms` SET `floor`=2, `status`='available' WHERE `name`='210';

INSERT INTO `classrooms` (`name`, `building`, `floor`, `capacity`, `room_type`, `status`, `notes`)
SELECT '211', NULL, 2, 30, '大', 'available', '来源: 暑期班课表 更新-2.xlsx'
WHERE NOT EXISTS (SELECT 1 FROM `classrooms` WHERE `name`='211');
UPDATE `classrooms` SET `floor`=2, `status`='available' WHERE `name`='211';

INSERT INTO `classrooms` (`name`, `building`, `floor`, `capacity`, `room_type`, `status`, `notes`)
SELECT '212', NULL, 2, 30, '大', 'available', '来源: 暑期班课表 更新-2.xlsx'
WHERE NOT EXISTS (SELECT 1 FROM `classrooms` WHERE `name`='212');
UPDATE `classrooms` SET `floor`=2, `status`='available' WHERE `name`='212';

INSERT INTO `classrooms` (`name`, `building`, `floor`, `capacity`, `room_type`, `status`, `notes`)
SELECT '301', NULL, 3, 30, '大', 'available', '来源: 暑期班课表 更新-2.xlsx'
WHERE NOT EXISTS (SELECT 1 FROM `classrooms` WHERE `name`='301');
UPDATE `classrooms` SET `floor`=3, `status`='available' WHERE `name`='301';

DELETE ct FROM `class_teacher` ct JOIN `classes` c ON c.id=ct.class_id JOIN `users` u ON u.id=ct.user_id WHERE c.code LIKE 'SUMMER_2025_%' AND u.username LIKE 'summer_teacher_%';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '英语' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_1';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '计算机' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_05' WHERE c.code='SUMMER_2025_1';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '数学' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_03' WHERE c.code='SUMMER_2025_1';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '计算机' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_2';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '英语' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_2';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '数学' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_2';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '数学' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_02' WHERE c.code='SUMMER_2025_3';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '计算机' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_3';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '英语' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_3';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '英语' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_4';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '数学' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_4';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '计算机' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_4';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '语文' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_09' WHERE c.code='SUMMER_2025_5';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '英语' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_5';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '计算机' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_5';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '语文' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_07' WHERE c.code='SUMMER_2025_6';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '计算机' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_6';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '英语' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_6';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '数学' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_7';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '英语' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_10' WHERE c.code='SUMMER_2025_7';

INSERT INTO `class_teacher` (`class_id`, `user_id`, `role_type`, `subject`)
SELECT c.id, u.id, 'subject_teacher', '计算机' FROM `classes` c JOIN `users` u ON u.username='summer_teacher_01' WHERE c.code='SUMMER_2025_7';

DELETE ar FROM `attendance_records` ar JOIN `class_schedule` cs ON cs.id=ar.schedule_id JOIN `classes` c ON c.id=cs.class_id WHERE c.code LIKE 'SUMMER_2025_%' AND cs.start_date BETWEEN '2025-07-20' AND '2025-08-16';
DELETE ats FROM `attendance_sessions` ats JOIN `class_schedule` cs ON cs.id=ats.schedule_id JOIN `classes` c ON c.id=cs.class_id WHERE c.code LIKE 'SUMMER_2025_%' AND cs.start_date BETWEEN '2025-07-20' AND '2025-08-16';
DELETE cs FROM `class_schedule` cs JOIN `classes` c ON c.id=cs.class_id WHERE c.code LIKE 'SUMMER_2025_%' AND cs.start_date BETWEEN '2025-07-20' AND '2025-08-16';

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-07-20', '2025-07-20', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-07-20', '2025-07-20', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_05' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-07-21', '2025-07-21', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_03' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-07-21', '2025-07-21', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_05' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-07-22', '2025-07-22', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-07-22', '2025-07-22', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_03' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-07-23', '2025-07-23', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-07-23', '2025-07-23', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_05' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-07-24', '2025-07-24', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-07-24', '2025-07-24', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_03' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-07-26', '2025-07-26', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_03' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-07-26', '2025-07-26', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_05' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-07-20', '2025-07-20', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-07-20', '2025-07-20', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-07-21', '2025-07-21', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-07-21', '2025-07-21', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-07-22', '2025-07-22', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-07-22', '2025-07-22', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-07-23', '2025-07-23', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-07-23', '2025-07-23', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-07-24', '2025-07-24', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-07-24', '2025-07-24', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-07-26', '2025-07-26', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-07-26', '2025-07-26', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-07-20', '2025-07-20', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_02' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-07-20', '2025-07-20', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-07-21', '2025-07-21', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-07-21', '2025-07-21', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_02' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-07-22', '2025-07-22', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-07-22', '2025-07-22', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-07-23', '2025-07-23', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_02' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-07-23', '2025-07-23', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-07-24', '2025-07-24', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-07-24', '2025-07-24', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-07-26', '2025-07-26', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-07-26', '2025-07-26', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_02' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-07-20', '2025-07-20', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-07-20', '2025-07-20', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-07-21', '2025-07-21', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-07-21', '2025-07-21', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-07-22', '2025-07-22', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-07-22', '2025-07-22', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-07-23', '2025-07-23', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-07-23', '2025-07-23', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-07-24', '2025-07-24', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-07-24', '2025-07-24', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-07-26', '2025-07-26', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-07-26', '2025-07-26', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-07-20', '2025-07-20', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_09' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-07-20', '2025-07-20', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-07-21', '2025-07-21', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-07-21', '2025-07-21', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-07-22', '2025-07-22', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_09' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-07-22', '2025-07-22', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-07-23', '2025-07-23', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-07-23', '2025-07-23', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-07-24', '2025-07-24', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_09' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-07-24', '2025-07-24', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-07-26', '2025-07-26', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_09' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-07-26', '2025-07-26', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-07-20', '2025-07-20', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_07' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-07-20', '2025-07-20', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-07-21', '2025-07-21', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-07-21', '2025-07-21', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_07' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-07-22', '2025-07-22', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-07-22', '2025-07-22', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-07-23', '2025-07-23', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-07-23', '2025-07-23', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_07' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-07-24', '2025-07-24', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-07-24', '2025-07-24', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-07-26', '2025-07-26', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_07' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-07-26', '2025-07-26', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-07-20', '2025-07-20', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-07-20', '2025-07-20', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_10' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-07-21', '2025-07-21', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_01' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-07-21', '2025-07-21', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-07-22', '2025-07-22', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_01' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-07-22', '2025-07-22', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_10' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-07-23', '2025-07-23', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_01' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-07-23', '2025-07-23', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-07-24', '2025-07-24', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_01' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-07-24', '2025-07-24', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_10' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-07-26', '2025-07-26', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-07-26', '2025-07-26', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_10' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-07-27', '2025-07-27', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-07-27', '2025-07-27', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_05' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-07-28', '2025-07-28', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_03' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-07-28', '2025-07-28', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-07-29', '2025-07-29', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_03' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-07-29', '2025-07-29', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_05' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-07-30', '2025-07-30', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_03' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-07-30', '2025-07-30', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_05' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-07-31', '2025-07-31', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-07-31', '2025-07-31', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_03' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-02', '2025-08-02', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-02', '2025-08-02', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_05' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-07-27', '2025-07-27', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-07-27', '2025-07-27', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-07-28', '2025-07-28', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-07-28', '2025-07-28', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-07-29', '2025-07-29', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-07-29', '2025-07-29', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-07-30', '2025-07-30', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-07-30', '2025-07-30', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-07-31', '2025-07-31', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-07-31', '2025-07-31', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-02', '2025-08-02', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-02', '2025-08-02', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-07-27', '2025-07-27', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_02' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-07-27', '2025-07-27', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-07-28', '2025-07-28', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-07-28', '2025-07-28', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_02' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-07-29', '2025-07-29', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-07-29', '2025-07-29', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-07-30', '2025-07-30', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_02' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-07-30', '2025-07-30', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-07-31', '2025-07-31', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-07-31', '2025-07-31', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-02', '2025-08-02', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_02' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-02', '2025-08-02', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-07-27', '2025-07-27', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-07-27', '2025-07-27', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-07-28', '2025-07-28', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-07-28', '2025-07-28', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-07-29', '2025-07-29', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-07-29', '2025-07-29', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-07-30', '2025-07-30', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-07-30', '2025-07-30', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-07-31', '2025-07-31', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-07-31', '2025-07-31', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-02', '2025-08-02', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-02', '2025-08-02', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-07-27', '2025-07-27', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_09' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-07-27', '2025-07-27', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-07-28', '2025-07-28', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-07-28', '2025-07-28', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-07-29', '2025-07-29', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_09' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-07-29', '2025-07-29', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-07-30', '2025-07-30', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-07-30', '2025-07-30', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-07-31', '2025-07-31', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_09' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-07-31', '2025-07-31', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-02', '2025-08-02', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_09' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-02', '2025-08-02', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-07-27', '2025-07-27', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_07' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-07-27', '2025-07-27', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-07-28', '2025-07-28', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-07-28', '2025-07-28', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_07' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-07-29', '2025-07-29', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-07-29', '2025-07-29', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-07-30', '2025-07-30', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-07-30', '2025-07-30', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_07' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-07-31', '2025-07-31', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-07-31', '2025-07-31', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-02', '2025-08-02', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_07' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-02', '2025-08-02', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-07-27', '2025-07-27', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-07-27', '2025-07-27', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_10' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-07-28', '2025-07-28', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_01' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-07-28', '2025-07-28', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-07-29', '2025-07-29', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_01' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-07-29', '2025-07-29', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_10' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-07-30', '2025-07-30', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_01' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-07-30', '2025-07-30', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-07-31', '2025-07-31', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_01' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-07-31', '2025-07-31', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_10' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-02', '2025-08-02', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-02', '2025-08-02', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_10' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-08-03', '2025-08-03', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-08-03', '2025-08-03', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_05' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-08-04', '2025-08-04', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-08-04', '2025-08-04', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_03' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-08-05', '2025-08-05', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_03' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-08-05', '2025-08-05', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_05' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-08-06', '2025-08-06', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_05' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-08-06', '2025-08-06', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_03' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-08-07', '2025-08-07', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-08-07', '2025-08-07', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_05' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-09', '2025-08-09', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-09', '2025-08-09', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_03' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-08-03', '2025-08-03', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-08-03', '2025-08-03', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-08-04', '2025-08-04', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-08-04', '2025-08-04', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-08-05', '2025-08-05', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-08-05', '2025-08-05', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-08-06', '2025-08-06', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-08-06', '2025-08-06', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-08-07', '2025-08-07', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-08-07', '2025-08-07', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-09', '2025-08-09', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-09', '2025-08-09', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-08-03', '2025-08-03', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_02' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-08-03', '2025-08-03', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-08-04', '2025-08-04', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_02' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-08-04', '2025-08-04', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-08-05', '2025-08-05', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-08-05', '2025-08-05', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-08-06', '2025-08-06', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_02' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-08-06', '2025-08-06', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-08-07', '2025-08-07', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-08-07', '2025-08-07', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_02' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-09', '2025-08-09', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-09', '2025-08-09', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-08-03', '2025-08-03', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-08-03', '2025-08-03', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-08-04', '2025-08-04', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-08-04', '2025-08-04', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-08-05', '2025-08-05', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-08-05', '2025-08-05', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-08-06', '2025-08-06', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-08-06', '2025-08-06', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-08-07', '2025-08-07', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-08-07', '2025-08-07', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-09', '2025-08-09', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-09', '2025-08-09', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-08-03', '2025-08-03', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_09' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-08-03', '2025-08-03', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-08-04', '2025-08-04', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-08-04', '2025-08-04', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-08-05', '2025-08-05', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-08-05', '2025-08-05', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_09' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-08-06', '2025-08-06', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-08-06', '2025-08-06', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-08-07', '2025-08-07', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_09' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-08-07', '2025-08-07', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-09', '2025-08-09', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_09' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-09', '2025-08-09', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-08-03', '2025-08-03', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_07' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-08-03', '2025-08-03', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-08-04', '2025-08-04', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-08-04', '2025-08-04', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_07' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-08-05', '2025-08-05', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-08-05', '2025-08-05', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-08-06', '2025-08-06', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-08-06', '2025-08-06', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_07' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-08-07', '2025-08-07', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-08-07', '2025-08-07', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-09', '2025-08-09', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_07' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-09', '2025-08-09', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-08-03', '2025-08-03', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-08-03', '2025-08-03', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_10' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-08-04', '2025-08-04', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_01' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-08-04', '2025-08-04', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-08-05', '2025-08-05', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_01' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-08-05', '2025-08-05', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_10' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '09:00', '12:00', 30, '2025-08-06', '2025-08-06', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_01' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 3, '14:00', '17:00', 30, '2025-08-06', '2025-08-06', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-08-07', '2025-08-07', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_01' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-08-07', '2025-08-07', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_10' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-09', '2025-08-09', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-09', '2025-08-09', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_10' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-08-10', '2025-08-10', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-08-10', '2025-08-10', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_05' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-08-11', '2025-08-11', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-08-11', '2025-08-11', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_03' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-08-12', '2025-08-12', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_03' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-08-12', '2025-08-12', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_05' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-08-14', '2025-08-14', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-08-14', '2025-08-14', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_05' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 5, '09:00', '12:00', 30, '2025-08-15', '2025-08-15', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_03' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 5, '14:00', '17:00', 30, '2025-08-15', '2025-08-15', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-16', '2025-08-16', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_03' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-16', '2025-08-16', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='212' JOIN `users` u ON u.username='summer_teacher_05' WHERE c.code='SUMMER_2025_1' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-08-10', '2025-08-10', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-08-10', '2025-08-10', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-08-11', '2025-08-11', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-08-11', '2025-08-11', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-08-12', '2025-08-12', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-08-12', '2025-08-12', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-08-14', '2025-08-14', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-08-14', '2025-08-14', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 5, '09:00', '12:00', 30, '2025-08-15', '2025-08-15', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 5, '14:00', '17:00', 30, '2025-08-15', '2025-08-15', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-16', '2025-08-16', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-16', '2025-08-16', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='210' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_2' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-08-10', '2025-08-10', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_02' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-08-10', '2025-08-10', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-08-11', '2025-08-11', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_02' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-08-11', '2025-08-11', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-08-12', '2025-08-12', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-08-12', '2025-08-12', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-08-14', '2025-08-14', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-08-14', '2025-08-14', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_02' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 5, '09:00', '12:00', 30, '2025-08-15', '2025-08-15', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 5, '14:00', '17:00', 30, '2025-08-15', '2025-08-15', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-16', '2025-08-16', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-16', '2025-08-16', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='301' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_3' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-08-10', '2025-08-10', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-08-10', '2025-08-10', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-08-11', '2025-08-11', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-08-11', '2025-08-11', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-08-12', '2025-08-12', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-08-12', '2025-08-12', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-08-14', '2025-08-14', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-08-14', '2025-08-14', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 5, '09:00', '12:00', 30, '2025-08-15', '2025-08-15', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 5, '14:00', '17:00', 30, '2025-08-15', '2025-08-15', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-16', '2025-08-16', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-16', '2025-08-16', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='208' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_4' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-08-10', '2025-08-10', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-08-10', '2025-08-10', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_09' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-08-11', '2025-08-11', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-08-11', '2025-08-11', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-08-12', '2025-08-12', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-08-12', '2025-08-12', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_09' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-08-14', '2025-08-14', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_09' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-08-14', '2025-08-14', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 5, '09:00', '12:00', 30, '2025-08-15', '2025-08-15', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 5, '14:00', '17:00', 30, '2025-08-15', '2025-08-15', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_09' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-16', '2025-08-16', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_11' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-16', '2025-08-16', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='211' JOIN `users` u ON u.username='summer_teacher_08' WHERE c.code='SUMMER_2025_5' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-08-10', '2025-08-10', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_07' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-08-10', '2025-08-10', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-08-11', '2025-08-11', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-08-11', '2025-08-11', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_07' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-08-12', '2025-08-12', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-08-12', '2025-08-12', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-08-14', '2025-08-14', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-08-14', '2025-08-14', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 5, '09:00', '12:00', 30, '2025-08-15', '2025-08-15', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_07' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 5, '14:00', '17:00', 30, '2025-08-15', '2025-08-15', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_04' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-16', '2025-08-16', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_12' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-16', '2025-08-16', '语文', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='209' JOIN `users` u ON u.username='summer_teacher_07' WHERE c.code='SUMMER_2025_6' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '09:00', '12:00', 30, '2025-08-10', '2025-08-10', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 7, '14:00', '17:00', 30, '2025-08-10', '2025-08-10', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_10' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '09:00', '12:00', 30, '2025-08-11', '2025-08-11', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_01' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 1, '14:00', '17:00', 30, '2025-08-11', '2025-08-11', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '09:00', '12:00', 30, '2025-08-12', '2025-08-12', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_01' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 2, '14:00', '17:00', 30, '2025-08-12', '2025-08-12', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_10' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '09:00', '12:00', 30, '2025-08-14', '2025-08-14', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_01' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 4, '14:00', '17:00', 30, '2025-08-14', '2025-08-14', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_10' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 5, '09:00', '12:00', 30, '2025-08-15', '2025-08-15', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 5, '14:00', '17:00', 30, '2025-08-15', '2025-08-15', '英语', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_10' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '09:00', '12:00', 30, '2025-08-16', '2025-08-16', '计算机', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_01' WHERE c.code='SUMMER_2025_7' LIMIT 1;

INSERT INTO `class_schedule` (`class_id`, `classroom_id`, `week_day`, `start_time`, `end_time`, `attendance_advance_minutes`, `start_date`, `end_date`, `subject`, `teacher_id`, `schedule_type`, `status`, `notes`)
SELECT c.id, cr.id, 6, '14:00', '17:00', 30, '2025-08-16', '2025-08-16', '数学', u.id, 'INTERNAL', 'active', '来源: 暑期班课表 更新-2.xlsx' FROM `classes` c JOIN `classrooms` cr ON cr.name='207' JOIN `users` u ON u.username='summer_teacher_06' WHERE c.code='SUMMER_2025_7' LIMIT 1;

DELETE es FROM `exam_scores` es JOIN `exams` e ON e.id=es.exam_id JOIN `classes` c ON c.id=e.class_id WHERE c.code LIKE 'SUMMER_2025_%' AND e.exam_date BETWEEN '2025-07-20' AND '2025-08-16';
DELETE e FROM `exams` e JOIN `classes` c ON c.id=e.class_id WHERE c.code LIKE 'SUMMER_2025_%' AND e.exam_date BETWEEN '2025-07-20' AND '2025-08-16';

INSERT INTO `exams` (`exam_type`, `exam_name`, `subject`, `exam_date`, `class_id`, `status`) SELECT '暑期考试', '暑期班考试', '综合', '2025-08-01', c.id, 'active' FROM `classes` c WHERE c.code='SUMMER_2025_1';

INSERT INTO `exams` (`exam_type`, `exam_name`, `subject`, `exam_date`, `class_id`, `status`) SELECT '暑期考试', '暑期班考试', '综合', '2025-08-01', c.id, 'active' FROM `classes` c WHERE c.code='SUMMER_2025_2';

INSERT INTO `exams` (`exam_type`, `exam_name`, `subject`, `exam_date`, `class_id`, `status`) SELECT '暑期考试', '暑期班考试', '综合', '2025-08-01', c.id, 'active' FROM `classes` c WHERE c.code='SUMMER_2025_3';

INSERT INTO `exams` (`exam_type`, `exam_name`, `subject`, `exam_date`, `class_id`, `status`) SELECT '暑期考试', '暑期班考试', '综合', '2025-08-01', c.id, 'active' FROM `classes` c WHERE c.code='SUMMER_2025_4';

INSERT INTO `exams` (`exam_type`, `exam_name`, `subject`, `exam_date`, `class_id`, `status`) SELECT '暑期考试', '暑期班考试', '综合', '2025-08-01', c.id, 'active' FROM `classes` c WHERE c.code='SUMMER_2025_5';

INSERT INTO `exams` (`exam_type`, `exam_name`, `subject`, `exam_date`, `class_id`, `status`) SELECT '暑期考试', '暑期班考试', '综合', '2025-08-01', c.id, 'active' FROM `classes` c WHERE c.code='SUMMER_2025_6';

INSERT INTO `exams` (`exam_type`, `exam_name`, `subject`, `exam_date`, `class_id`, `status`) SELECT '暑期考试', '暑期班考试', '综合', '2025-08-13', c.id, 'active' FROM `classes` c WHERE c.code='SUMMER_2025_1';

INSERT INTO `exams` (`exam_type`, `exam_name`, `subject`, `exam_date`, `class_id`, `status`) SELECT '暑期考试', '暑期班考试', '综合', '2025-08-13', c.id, 'active' FROM `classes` c WHERE c.code='SUMMER_2025_2';

INSERT INTO `exams` (`exam_type`, `exam_name`, `subject`, `exam_date`, `class_id`, `status`) SELECT '暑期考试', '暑期班考试', '综合', '2025-08-13', c.id, 'active' FROM `classes` c WHERE c.code='SUMMER_2025_3';

INSERT INTO `exams` (`exam_type`, `exam_name`, `subject`, `exam_date`, `class_id`, `status`) SELECT '暑期考试', '暑期班考试', '综合', '2025-08-13', c.id, 'active' FROM `classes` c WHERE c.code='SUMMER_2025_4';

INSERT INTO `exams` (`exam_type`, `exam_name`, `subject`, `exam_date`, `class_id`, `status`) SELECT '暑期考试', '暑期班考试', '综合', '2025-08-13', c.id, 'active' FROM `classes` c WHERE c.code='SUMMER_2025_5';

INSERT INTO `exams` (`exam_type`, `exam_name`, `subject`, `exam_date`, `class_id`, `status`) SELECT '暑期考试', '暑期班考试', '综合', '2025-08-13', c.id, 'active' FROM `classes` c WHERE c.code='SUMMER_2025_6';

INSERT INTO `exams` (`exam_type`, `exam_name`, `subject`, `exam_date`, `class_id`, `status`) SELECT '暑期考试', '暑期班考试', '综合', '2025-08-13', c.id, 'active' FROM `classes` c WHERE c.code='SUMMER_2025_7';

DELETE FROM `evening_study_duties` WHERE `duty_date` BETWEEN '2025-07-20' AND '2025-08-16';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-07-20', u.id, '郭馨' FROM `users` u WHERE u.username='summer_teacher_04';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-07-21', u.id, '师哲' FROM `users` u WHERE u.username='summer_teacher_06';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-07-22', u.id, '王家欣' FROM `users` u WHERE u.username='summer_teacher_08';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-07-23', u.id, '张永杰' FROM `users` u WHERE u.username='summer_teacher_12';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-07-24', u.id, '袁嘉琪' FROM `users` u WHERE u.username='summer_teacher_11';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-07-26', u.id, '陈奕静' FROM `users` u WHERE u.username='summer_teacher_02';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-07-27', u.id, '王家欣' FROM `users` u WHERE u.username='summer_teacher_08';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-07-28', u.id, '师哲' FROM `users` u WHERE u.username='summer_teacher_06';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-07-29', u.id, '郭馨' FROM `users` u WHERE u.username='summer_teacher_04';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-07-30', u.id, '李鸿图' FROM `users` u WHERE u.username='summer_teacher_05';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-07-31', u.id, '袁嘉琪' FROM `users` u WHERE u.username='summer_teacher_11';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-08-02', u.id, '张永杰' FROM `users` u WHERE u.username='summer_teacher_12';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-08-03', u.id, '师哲' FROM `users` u WHERE u.username='summer_teacher_06';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-08-04', u.id, '张永杰' FROM `users` u WHERE u.username='summer_teacher_12';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-08-05', u.id, '王沐妍' FROM `users` u WHERE u.username='summer_teacher_09';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-08-06', u.id, '师哲' FROM `users` u WHERE u.username='summer_teacher_06';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-08-07', u.id, '郭馨' FROM `users` u WHERE u.username='summer_teacher_04';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-08-09', u.id, '王家欣' FROM `users` u WHERE u.username='summer_teacher_08';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-08-10', u.id, '师哲' FROM `users` u WHERE u.username='summer_teacher_06';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-08-11', u.id, '袁嘉琪' FROM `users` u WHERE u.username='summer_teacher_11';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-08-12', u.id, '李鸿图' FROM `users` u WHERE u.username='summer_teacher_05';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-08-14', u.id, '陈奕静' FROM `users` u WHERE u.username='summer_teacher_02';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-08-15', u.id, '张永杰' FROM `users` u WHERE u.username='summer_teacher_12';

INSERT INTO `evening_study_duties` (`duty_date`, `teacher_id`, `teacher_name`) SELECT '2025-08-16', u.id, '李鸿图' FROM `users` u WHERE u.username='summer_teacher_05';

COMMIT;

-- Default login: admin / admin123
-- Summer teacher accounts: summer_teacher_01 ... summer_teacher_12; password admin123.
-- Change all default passwords immediately after first login.
