package com.mindskip.xzs.service;
|
|
import com.mindskip.xzs.domain.ExamPaperQuestionCustomerAnswer;
|
import com.mindskip.xzs.domain.other.ExamPaperAnswerUpdate;
|
import com.mindskip.xzs.viewmodel.student.exam.ExamPaperSubmitItemVM;
|
import com.mindskip.xzs.viewmodel.student.question.answer.QuestionPageStudentRequestVM;
|
import com.github.pagehelper.PageInfo;
|
|
import java.util.List;
|
|
/**
|
* @version 2.2.0
|
* @description: 答题
|
* Copyright (C), 2020-2021, 武汉思维跳跃科技有限公司
|
* @date 2021 /9/7 9:45
|
*/
|
public interface ExamPaperQuestionCustomerAnswerService extends BaseService<ExamPaperQuestionCustomerAnswer> {
|
|
/**
|
* 错题本
|
*
|
* @param requestVM the request vm
|
* @return the page info
|
*/
|
PageInfo<ExamPaperQuestionCustomerAnswer> studentPage(QuestionPageStudentRequestVM requestVM);
|
|
/**
|
* 根据id获取错题
|
*
|
* @param id the id
|
* @return the list
|
*/
|
List<ExamPaperQuestionCustomerAnswer> selectListByPaperAnswerId(Integer id);
|
|
/**
|
* 试卷提交答案入库
|
*
|
* @param examPaperQuestionCustomerAnswers List<ExamPaperQuestionCustomerAnswer>
|
*/
|
void insertList(List<ExamPaperQuestionCustomerAnswer> examPaperQuestionCustomerAnswers);
|
|
/**
|
* 试卷问题答题信息转成ViewModel 传给前台
|
*
|
* @param qa ExamPaperQuestionCustomerAnswer
|
* @return ExamPaperSubmitItemVM exam paper submit item vm
|
*/
|
ExamPaperSubmitItemVM examPaperQuestionCustomerAnswerToVM(ExamPaperQuestionCustomerAnswer qa);
|
|
|
/**
|
* 查询所有答题数量
|
*
|
* @return the integer
|
*/
|
Integer selectAllCount();
|
|
/**
|
* 查询月答题数量
|
*
|
* @return the list
|
*/
|
List<Integer> selectMothCount();
|
|
/**
|
* 更新题目分数
|
*
|
* @param examPaperAnswerUpdates the exam paper answer updates
|
* @return the int
|
*/
|
int updateScore(List<ExamPaperAnswerUpdate> examPaperAnswerUpdates);
|
}
|