From 93af1c6ffb9ae0e894689ad3a37b548e57d54cff Mon Sep 17 00:00:00 2001 From: linzhijie <19970921lzj> Date: 星期四, 11 三月 2021 19:10:07 +0800 Subject: [PATCH] 有注释的测评系统业务代码 --- src/main/java/com/ots/project/exam/service/ExamPaperQuestionCustomerAnswerService.java | 24 ++++++++++++++++++++++-- 1 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ots/project/exam/service/ExamPaperQuestionCustomerAnswerService.java b/src/main/java/com/ots/project/exam/service/ExamPaperQuestionCustomerAnswerService.java index 5694e85..e11544c 100644 --- a/src/main/java/com/ots/project/exam/service/ExamPaperQuestionCustomerAnswerService.java +++ b/src/main/java/com/ots/project/exam/service/ExamPaperQuestionCustomerAnswerService.java @@ -1,18 +1,38 @@ package com.ots.project.exam.service; + import com.github.pagehelper.PageInfo; import com.ots.project.exam.domain.ExamPaperQuestionCustomerAnswer; import com.ots.project.exam.dto.ExamPaperAnswerUpdate; import com.ots.project.exam.viewmodel.ExamPaperSubmitItemVM; import com.ots.project.exam.viewmodel.QuestionPageStudentRequestVM; + import java.util.List; + public interface ExamPaperQuestionCustomerAnswerService extends BaseService<ExamPaperQuestionCustomerAnswer> { + PageInfo<ExamPaperQuestionCustomerAnswer> studentPage(QuestionPageStudentRequestVM requestVM); + List<ExamPaperQuestionCustomerAnswer> selectListByPaperAnswerId(Integer id); - + + /** + * 璇曞嵎鎻愪氦绛旀鍏ュ簱 + * + * @param examPaperQuestionCustomerAnswers List<ExamPaperQuestionCustomerAnswer> + */ void insertList(List<ExamPaperQuestionCustomerAnswer> examPaperQuestionCustomerAnswers); - + + /** + * 璇曞嵎闂绛旈淇℃伅杞垚ViewModel 浼犵粰鍓嶅彴 + * + * @param qa ExamPaperQuestionCustomerAnswer + * @return ExamPaperSubmitItemVM + */ ExamPaperSubmitItemVM examPaperQuestionCustomerAnswerToVM(ExamPaperQuestionCustomerAnswer qa); + + Integer selectAllCount(); + List<Integer> selectMothCount(); + int updateScore(List<ExamPaperAnswerUpdate> examPaperAnswerUpdates); } -- Gitblit v1.9.1