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
73
74
75
76
77
78
79
80
package com.mindskip.xzs.repository;
 
import com.mindskip.xzs.domain.ExamPaperQuestionCustomerAnswer;
import com.mindskip.xzs.domain.other.ExamPaperAnswerUpdate;
import com.mindskip.xzs.domain.other.KeyValue;
import com.mindskip.xzs.viewmodel.student.question.answer.QuestionPageStudentRequestVM;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.Date;
import java.util.List;
 
/**
 * @version 2.2.0
 * @description: 答题
 * Copyright (C), 2020-2021, 武汉思维跳跃科技有限公司
 * @date 2021 /9/7 9:45
 */
@Mapper
public interface ExamPaperQuestionCustomerAnswerMapper extends BaseMapper<ExamPaperQuestionCustomerAnswer> {
    int deleteByPrimaryKey(Integer id);
 
    int insert(ExamPaperQuestionCustomerAnswer record);
 
    int insertSelective(ExamPaperQuestionCustomerAnswer record);
 
    ExamPaperQuestionCustomerAnswer selectByPrimaryKey(Integer id);
 
    int updateByPrimaryKeySelective(ExamPaperQuestionCustomerAnswer record);
 
    int updateByPrimaryKey(ExamPaperQuestionCustomerAnswer record);
 
    /**
     * 获取答卷的答题信息
     *
     * @param id the id
     * @return the list
     */
    List<ExamPaperQuestionCustomerAnswer> selectListByPaperAnswerId(Integer id);
 
    /**
     * 用户错题本
     *
     * @param requestVM the request vm
     * @return the list
     */
    List<ExamPaperQuestionCustomerAnswer> studentPage(QuestionPageStudentRequestVM requestVM);
 
    /**
     * 插入用户答题信息
     *
     * @param list the list
     * @return the int
     */
    int insertList(List<ExamPaperQuestionCustomerAnswer> list);
 
    /**
     * 获取所有答题数量
     *
     * @return the integer
     */
    Integer selectAllCount();
 
    /**
     * 获取时间段内的答题信息
     *
     * @param startTime the start time
     * @param endTime   the end time
     * @return the list
     */
    List<KeyValue> selectCountByDate(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
 
    /**
     * 更新答题分数
     *
     * @param examPaperAnswerUpdates the exam paper answer updates
     * @return the int
     */
    int updateScore(List<ExamPaperAnswerUpdate> examPaperAnswerUpdates);
}