Repository navigation
feat: 三角調課(v1.4.20) - #85
Merged
Merged
Conversation
- 遷移 0022:substitutions 新增 tri_teacher_id 與 tri_*(乙原本那一節,改由丙上),可為空 - services/swap_legs.py:一筆調課換人上的每一格(互調兩格、三角三格),巡堂表、週課表、 教師週總表、調課單、調代課紀錄、停課衝突共用 - swap_options.triangle_search 與 substitutions._validate_triangle 共用 SwapChecker; 只限同一班、一位老師上的一般課;三角調的節次不能再調 - 通知三位老師;撤回、銷假一起撤並通知丙;重新發布課表兩節一起接到新課表 - 修正:對方那一節已在他自己的調課(未請假)裡時,不再列為可對調 - 前端調課面板「兩人互調/三角調課」切換;手冊 8.3、FAQ、CHANGELOG、升級與退回說明 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
三角調課(v1.4.20)
組長拿別家系統的畫面來問「會出三角調課嗎?」。兩人互調湊不出來時,同一班三位老師輪流換課:
乙來上請假那節、丙來上乙原本的一節、請假的老師回來上丙原本的一節。
規則(使用者 2026-11-17 同意)
做法
0022_triangle_swaps:substitutions新增tri_teacher_id與tri_*(乙原本那一節,改由丙上),全部可為空;既有資料不變。swap_*仍是「請假老師回來上的那一節」,此時是丙的課。services/swap_legs.py:一筆調課換人上的每一格。巡堂表、週課表、教師週總表、調課單、調代課紀錄、停課衝突都改用它。swap_options.triangle_search(新 APIGET /affected-periods/{id}/triangle-options)與送出時的substitutions._validate_triangle共用SwapChecker。_taken_slots含三角的兩格;重新發布時兩格一起接到新課表。驗證
🤖 Generated with Claude Code