From 47cd9ecc0eff38ffe6b3b794b2bf197e958f4403 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期三, 14 五月 2025 15:50:57 +0800
Subject: [PATCH] bug:学员有状态不能修改问题
---
src/main/java/com/mindskip/xzs/controller/student/ExamPaperAnswerController.java | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/src/main/java/com/mindskip/xzs/controller/student/ExamPaperAnswerController.java b/src/main/java/com/mindskip/xzs/controller/student/ExamPaperAnswerController.java
index 155183d..320f2f5 100644
--- a/src/main/java/com/mindskip/xzs/controller/student/ExamPaperAnswerController.java
+++ b/src/main/java/com/mindskip/xzs/controller/student/ExamPaperAnswerController.java
@@ -34,17 +34,15 @@
private final ApplicationEventPublisher eventPublisher;
private final ExamPaperSubjectService examPaperSubjectService;
private final ExamTemplatesUserCountService examTemplatesUserCountService;
- private final ExamMissService examMissService;
@Autowired
- public ExamPaperAnswerController(ExamPaperAnswerService examPaperAnswerService, ExamPaperService examPaperService, SubjectService subjectService, ApplicationEventPublisher eventPublisher, ExamPaperSubjectService examPaperSubjectService, ExamTemplatesUserCountService examTemplatesUserCountService, ExamMissService examMissService) {
+ public ExamPaperAnswerController(ExamPaperAnswerService examPaperAnswerService, ExamPaperService examPaperService, SubjectService subjectService, ApplicationEventPublisher eventPublisher, ExamPaperSubjectService examPaperSubjectService, ExamTemplatesUserCountService examTemplatesUserCountService) {
this.examPaperAnswerService = examPaperAnswerService;
this.examPaperService = examPaperService;
this.subjectService = subjectService;
this.eventPublisher = eventPublisher;
this.examPaperSubjectService = examPaperSubjectService;
this.examTemplatesUserCountService = examTemplatesUserCountService;
- this.examMissService = examMissService;
}
@@ -89,6 +87,7 @@
+ " 寰楀垎锛�" + scoreVm
+ " 鑰楁椂锛�" + ExamUtil.secondToVM(examPaperAnswer.getDoTime());
userEventLog.setContent(content);
+ examPaperAnswerInfo.setTemplateId(examPaperSubmitVM.getTemplatesId());
eventPublisher.publishEvent(new CalculateExamPaperAnswerCompleteEvent(examPaperAnswerInfo));
eventPublisher.publishEvent(new UserEvent(userEventLog));
//棣栭〉闅忔満璇曞嵎鎿嶄綔
@@ -100,13 +99,6 @@
examTemplatesUserCountService.add(examTemplatesUserCount);
}
- // 鑷姩鎻愪氦瀹氫箟涓虹己鑰�
- if (examPaperSubmitVM.isAutoCommit()) {
- ExamMiss examMiss = new ExamMiss();
- examMiss.setExamId(examPaperSubmitVM.getId());
- examMiss.setUserId(user.getId());
- examMissService.save(examMiss);
- }
return RestResponse.ok(scoreVm);
}
--
Gitblit v1.8.0