From 16b4725365f3286c2d2a80945e26f35f89b53f24 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期五, 28 六月 2024 11:37:06 +0800
Subject: [PATCH] answer表改为score表,阅卷代码

---
 src/main/java/com/ycl/jxkg/controller/student/QuestionAnswerController.java |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/src/main/java/com/ycl/jxkg/controller/student/QuestionAnswerController.java b/src/main/java/com/ycl/jxkg/controller/student/QuestionAnswerController.java
index 24b66b4..b5ed8dc 100644
--- a/src/main/java/com/ycl/jxkg/controller/student/QuestionAnswerController.java
+++ b/src/main/java/com/ycl/jxkg/controller/student/QuestionAnswerController.java
@@ -2,11 +2,10 @@
 
 import com.ycl.jxkg.base.BaseApiController;
 import com.ycl.jxkg.base.Result;
-import com.ycl.jxkg.domain.entity.ExamPaperQuestionCustomerAnswer;
+import com.ycl.jxkg.domain.entity.ExamPaperScoreDetail;
 import com.ycl.jxkg.domain.entity.Subject;
-import com.ycl.jxkg.domain.entity.TextContent;
 import com.ycl.jxkg.domain.question.QuestionObject;
-import com.ycl.jxkg.service.ExamPaperQuestionCustomerAnswerService;
+import com.ycl.jxkg.service.ExamPaperScoreDetailService;
 import com.ycl.jxkg.service.QuestionService;
 import com.ycl.jxkg.service.SubjectService;
 import com.ycl.jxkg.service.TextContentService;
@@ -29,7 +28,7 @@
 @RequestMapping(value = "/api/student/question/answer")
 public class QuestionAnswerController extends BaseApiController {
 
-    private final ExamPaperQuestionCustomerAnswerService examPaperQuestionCustomerAnswerService;
+    private final ExamPaperScoreDetailService examPaperScoreDetailService;
     private final QuestionService questionService;
     private final TextContentService textContentService;
     private final SubjectService subjectService;
@@ -37,7 +36,7 @@
     @RequestMapping(value = "/page", method = RequestMethod.POST)
     public Result<PageInfo<QuestionPageStudentResponseVO>> pageList(@RequestBody QuestionPageStudentRequestVO model) {
         model.setCreateUser(getCurrentUser().getId());
-        PageInfo<ExamPaperQuestionCustomerAnswer> pageInfo = examPaperQuestionCustomerAnswerService.studentPage(model);
+        PageInfo<ExamPaperScoreDetail> pageInfo = examPaperScoreDetailService.studentPage(model);
         PageInfo<QuestionPageStudentResponseVO> page = PageInfoHelper.copyMap(pageInfo, q -> {
             Subject subject = subjectService.getById(q.getSubjectId());
             QuestionPageStudentResponseVO vo = new QuestionPageStudentResponseVO();
@@ -56,9 +55,9 @@
     @RequestMapping(value = "/select/{id}", method = RequestMethod.POST)
     public Result<QuestionAnswerVO> select(@PathVariable Integer id) {
         QuestionAnswerVO vm = new QuestionAnswerVO();
-        ExamPaperQuestionCustomerAnswer examPaperQuestionCustomerAnswer = examPaperQuestionCustomerAnswerService.getById(id);
-        ExamPaperSubmitItemVO questionAnswerVM = examPaperQuestionCustomerAnswerService.examPaperQuestionCustomerAnswerToVM(examPaperQuestionCustomerAnswer);
-        QuestionEditRequestVO questionVM = questionService.getQuestionEditRequestVM(examPaperQuestionCustomerAnswer.getQuestionId());
+        ExamPaperScoreDetail examPaperScoreDetail = examPaperScoreDetailService.getById(id);
+        ExamPaperSubmitItemVO questionAnswerVM = examPaperScoreDetailService.examPaperQuestionCustomerAnswerToVM(examPaperScoreDetail);
+        QuestionEditRequestVO questionVM = questionService.getQuestionEditRequestVM(examPaperScoreDetail.getQuestionId());
         vm.setQuestionVM(questionVM);
         vm.setQuestionAnswerVM(questionAnswerVM);
         return Result.ok(vm);

--
Gitblit v1.8.0