baizonghao
2023-07-31 98b2f41e13c48219e054cf8b80c459298a01c910
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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);
}