From 7516e99d816b7f1610e6cc73fed23fc3d8ede1e3 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期一, 17 六月 2024 09:16:17 +0800 Subject: [PATCH] 随序试卷生成题目 --- src/main/java/com/ycl/jxkg/service/impl/QuestionServiceImpl.java | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/ycl/jxkg/service/impl/QuestionServiceImpl.java b/src/main/java/com/ycl/jxkg/service/impl/QuestionServiceImpl.java index 758c8c1..9e6a0d2 100644 --- a/src/main/java/com/ycl/jxkg/service/impl/QuestionServiceImpl.java +++ b/src/main/java/com/ycl/jxkg/service/impl/QuestionServiceImpl.java @@ -18,6 +18,7 @@ import com.ycl.jxkg.service.QuestionService; import com.ycl.jxkg.utils.DateTimeUtil; import com.ycl.jxkg.utils.ExamUtil; +import com.ycl.jxkg.utils.HtmlUtil; import com.ycl.jxkg.utils.JsonUtil; import lombok.RequiredArgsConstructor; import org.springframework.beans.BeanUtils; @@ -60,6 +61,9 @@ question.setDifficult(model.getDifficult()); question.setContent(questionObject); question.setCreateUser(userId); + question.setTitle(HtmlUtil.clear(model.getTitle())); + question.setAudioFile(model.getAudioFile()); + question.setOriginalFile(model.getOriginalFile()); questionMapper.insert(question); return question; } @@ -74,6 +78,9 @@ //棰樺共銆佽В鏋愩�侀�夐」绛� 鏇存柊 String questionObject = setQuestionInfoFromVM(model); question.setContent(questionObject); + question.setTitle(HtmlUtil.clear(model.getTitle())); + question.setAudioFile(model.getAudioFile()); + question.setOriginalFile(model.getOriginalFile()); questionMapper.updateById(question); return question; } -- Gitblit v1.8.0