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 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ycl/jxkg/listener/CalculateExamPaperAnswerListener.java b/src/main/java/com/ycl/jxkg/listener/CalculateExamPaperAnswerListener.java index 867ceca..4759dc6 100644 --- a/src/main/java/com/ycl/jxkg/listener/CalculateExamPaperAnswerListener.java +++ b/src/main/java/com/ycl/jxkg/listener/CalculateExamPaperAnswerListener.java @@ -57,12 +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(); textContent.setContent(d.getAnswer()); textContent.setCreateTime(now); - textContentService.insertByFilter(textContent); + textContentService.save(textContent); d.setTextContentId(textContent.getId()); d.setAnswer(null); }); -- Gitblit v1.8.0