haogh 10 luni în urmă
părinte
comite
c1ca6aa153

+ 8 - 0
paper-library-business/src/main/java/com/qmth/paper/library/business/service/impl/PaperLibraryServiceImpl.java

@@ -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;
     }