|
@@ -298,6 +298,14 @@ public class PaperLibraryServiceImpl extends ServiceImpl<PaperLibraryMapper, Pap
|
|
|
examStudentService.updateBindCount(studentId);
|
|
|
// 清除pdf文件记录
|
|
|
examStudentService.clearPdfFilePath(studentId);
|
|
|
+
|
|
|
+ //更新扫描任务扫描考生数量、扫描图片数量
|
|
|
+ ExamStudent student = examStudentService.getById(studentId);
|
|
|
+ PaperScanTask task = paperScanTaskService.getByExamIdAndCourseCode(studentId, student.getCourseCode());
|
|
|
+ paperScanTaskService.updateScanCount(paperLibrary.getPaperScanTaskId());
|
|
|
+ if(task != null && !task.getId().equals(paperLibrary.getPaperScanTaskId())) {
|
|
|
+ paperScanTaskService.updateScanCount(task.getId());
|
|
|
+ }
|
|
|
return true;
|
|
|
}
|
|
|
|