fix(attendance): normalize DingTalk match statuses

Store and validate stable English status codes for unmatched, pending, and matched attendance records so import, filtering, and auto-match use the same values.
This commit is contained in:
2026-07-10 14:11:55 +08:00
parent 1ca4a4d185
commit e26a8e816e
4 changed files with 6 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ export class DingAttendanceRaw {
@Column({ name: 'location_result', length: 20, nullable: true })
locationResult: string;
@Column({ name: 'match_status', length: 20, default: '未处理' })
@Column({ name: 'match_status', length: 20, default: 'unmatched' })
matchStatus: string;
@Column({ name: 'matched_student_id', type: 'integer', nullable: true })