forked from hangshuo652/aurak
feat: 添加复查功能和批量审核操作
- 复查功能: PUT /assessment/:id/review * 支持调整最终总分 * 记录复查历史(reviewHistory) * 保存原始分数(originalScore) * 保留复查人、复查时间、复查意见 - 批量审核: POST /question-banks/:bankId/items/batch-review * 支持批量通过/拒绝题目 * 可添加审核意见 - AssessmentSession实体: 添加复查相关字段
This commit is contained in:
@@ -61,6 +61,9 @@ export class AssessmentSession {
|
||||
@Column({ type: 'float', name: 'final_score', nullable: true })
|
||||
finalScore: number;
|
||||
|
||||
@Column({ type: 'float', name: 'original_score', nullable: true })
|
||||
originalScore: number;
|
||||
|
||||
@Column({ type: 'text', name: 'final_report', nullable: true })
|
||||
finalReport: string;
|
||||
|
||||
@@ -70,6 +73,18 @@ export class AssessmentSession {
|
||||
@Column({ type: 'simple-json', name: 'feedback_history', nullable: true })
|
||||
feedbackHistory: any[];
|
||||
|
||||
@Column({ name: 'reviewed_by', nullable: true, type: 'text' })
|
||||
reviewedBy: string | null;
|
||||
|
||||
@Column({ name: 'reviewed_at', nullable: true, type: 'datetime' })
|
||||
reviewedAt: Date | null;
|
||||
|
||||
@Column({ name: 'review_comment', nullable: true, type: 'text' })
|
||||
reviewComment: string | null;
|
||||
|
||||
@Column({ type: 'simple-json', name: 'review_history', nullable: true })
|
||||
reviewHistory: any[];
|
||||
|
||||
@Column({ type: 'int', name: 'current_question_index', default: 0 })
|
||||
currentQuestionIndex: number;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user