feat: 添加复查功能和批量审核操作

- 复查功能: PUT /assessment/:id/review
  * 支持调整最终总分
  * 记录复查历史(reviewHistory)
  * 保存原始分数(originalScore)
  * 保留复查人、复查时间、复查意见

- 批量审核: POST /question-banks/:bankId/items/batch-review
  * 支持批量通过/拒绝题目
  * 可添加审核意见

- AssessmentSession实体: 添加复查相关字段
This commit is contained in:
Developer
2026-05-13 23:06:40 +08:00
parent 332b14454b
commit 649844a657
7 changed files with 149 additions and 0 deletions
@@ -133,4 +133,18 @@ export class QuestionBankController {
req.user.tenantId,
);
}
@Post(':bankId/items/batch-review')
async batchReviewItems(
@Param('bankId') bankId: string,
@Body() body: { itemIds: string[]; approved: boolean; comment?: string },
) {
this.logger.log(`[batchReview] Reviewing ${body.itemIds.length} items, approved: ${body.approved}`);
return this.questionBankService.batchReviewItems(
bankId,
body.itemIds,
body.approved,
body.comment,
);
}
}