From d34010bcdba98d6906c3ad0959db3c650ea90239 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期四, 06 六月 2024 11:19:42 +0800 Subject: [PATCH] feat:科目查询、新增、状态、排序、删除、修改 --- src/main/java/com/ycl/jxkg/listener/CalculateExamPaperAnswerListener.java | 10 +++++++--- 1 files changed, 7 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 4759dc6..e03ff41 100644 --- a/src/main/java/com/ycl/jxkg/listener/CalculateExamPaperAnswerListener.java +++ b/src/main/java/com/ycl/jxkg/listener/CalculateExamPaperAnswerListener.java @@ -1,8 +1,12 @@ package com.ycl.jxkg.listener; import com.ycl.jxkg.domain.*; -import com.ycl.jxkg.domain.enums.ExamPaperTypeEnum; -import com.ycl.jxkg.domain.enums.QuestionTypeEnum; +import com.ycl.jxkg.domain.entity.ExamPaper; +import com.ycl.jxkg.domain.entity.ExamPaperAnswer; +import com.ycl.jxkg.domain.entity.ExamPaperQuestionCustomerAnswer; +import com.ycl.jxkg.domain.entity.TextContent; +import com.ycl.jxkg.enums.ExamPaperTypeEnum; +import com.ycl.jxkg.enums.QuestionTypeEnum; import com.ycl.jxkg.event.CalculateExamPaperAnswerCompleteEvent; import com.ycl.jxkg.service.ExamPaperAnswerService; import com.ycl.jxkg.service.ExamPaperQuestionCustomerAnswerService; @@ -72,7 +76,7 @@ examPaperQuestionCustomerAnswerService.insertList(examPaperQuestionCustomerAnswers); switch (ExamPaperTypeEnum.fromCode(examPaper.getPaperType())) { - case Task: { + case RandomOrder: { examCustomerAnswerService.insertOrUpdate(examPaper, examPaperAnswer, now); break; } -- Gitblit v1.8.0