From 2354b39c08f9cbe6c2878ee768abd9748c3c21b5 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期四, 06 六月 2024 17:26:46 +0800 Subject: [PATCH] feat:成绩管理-试卷展示 --- src/main/java/com/ycl/jxkg/controller/student/QuestionAnswerController.java | 13 ++++++------- 1 files changed, 6 insertions(+), 7 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 8e9996f..24b66b4 100644 --- a/src/main/java/com/ycl/jxkg/controller/student/QuestionAnswerController.java +++ b/src/main/java/com/ycl/jxkg/controller/student/QuestionAnswerController.java @@ -14,11 +14,11 @@ import com.ycl.jxkg.utils.HtmlUtil; import com.ycl.jxkg.utils.JsonUtil; import com.ycl.jxkg.utils.PageInfoHelper; -import com.ycl.jxkg.vo.admin.question.QuestionEditRequestVO; -import com.ycl.jxkg.vo.student.exam.ExamPaperSubmitItemVO; -import com.ycl.jxkg.vo.student.question.answer.QuestionAnswerVO; -import com.ycl.jxkg.vo.student.question.answer.QuestionPageStudentRequestVO; -import com.ycl.jxkg.vo.student.question.answer.QuestionPageStudentResponseVO; +import com.ycl.jxkg.domain.vo.admin.question.QuestionEditRequestVO; +import com.ycl.jxkg.domain.vo.student.exam.ExamPaperSubmitItemVO; +import com.ycl.jxkg.domain.vo.student.question.answer.QuestionAnswerVO; +import com.ycl.jxkg.domain.vo.student.question.answer.QuestionPageStudentRequestVO; +import com.ycl.jxkg.domain.vo.student.question.answer.QuestionPageStudentResponseVO; import com.github.pagehelper.PageInfo; import lombok.RequiredArgsConstructor; import org.springframework.beans.BeanUtils; @@ -43,8 +43,7 @@ QuestionPageStudentResponseVO vo = new QuestionPageStudentResponseVO(); BeanUtils.copyProperties(q, vo); vo.setCreateTime(DateTimeUtil.dateFormat(q.getCreateTime())); - TextContent textContent = textContentService.getById(q.getQuestionTextContentId()); - QuestionObject questionObject = JsonUtil.toJsonObject(textContent.getContent(), QuestionObject.class); + QuestionObject questionObject = JsonUtil.toJsonObject(q.getQuestionContent(), QuestionObject.class); String clearHtml = HtmlUtil.clear(questionObject.getTitleContent()); vo.setShortTitle(clearHtml); vo.setSubjectName(subject.getName()); -- Gitblit v1.8.0