From 21a9aa320b3eeb072bcd7d3fa883587d57b6ccbb Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期五, 31 五月 2024 14:52:33 +0800
Subject: [PATCH] 日志指定表名,试卷实体类修改

---
 src/main/java/com/ycl/jxkg/listener/CalculateExamPaperAnswerListener.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/ycl/jxkg/listener/CalculateExamPaperAnswerListener.java b/src/main/java/com/ycl/jxkg/listener/CalculateExamPaperAnswerListener.java
index 8d42033..4759dc6 100644
--- a/src/main/java/com/ycl/jxkg/listener/CalculateExamPaperAnswerListener.java
+++ b/src/main/java/com/ycl/jxkg/listener/CalculateExamPaperAnswerListener.java
@@ -57,10 +57,12 @@
         ExamPaperAnswer examPaperAnswer = examPaperAnswerInfo.getExamPaperAnswer();
         List<ExamPaperQuestionCustomerAnswer> examPaperQuestionCustomerAnswers = examPaperAnswerInfo.getExamPaperQuestionCustomerAnswers();
 
-        examPaperAnswerService.insertByFilter(examPaperAnswer);
+        examPaperAnswerService.save(examPaperAnswer);
         examPaperQuestionCustomerAnswers.stream().filter(a -> QuestionTypeEnum.needSaveTextContent(a.getQuestionType())).forEach(d -> {
-            TextContent textContent = new TextContent(d.getAnswer(), now);
-            textContentService.insertByFilter(textContent);
+            TextContent textContent = new TextContent();
+            textContent.setContent(d.getAnswer());
+            textContent.setCreateTime(now);
+            textContentService.save(textContent);
             d.setTextContentId(textContent.getId());
             d.setAnswer(null);
         });

--
Gitblit v1.8.0