linzhijie
2021-03-11 93af1c6ffb9ae0e894689ad3a37b548e57d54cff
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
package com.ots.project.exam.service;
 
 
import com.github.pagehelper.PageInfo;
import com.ots.project.exam.domain.ExamPaperAnswer;
import com.ots.project.exam.domain.ExamUser;
import com.ots.project.exam.dto.ExamPaperAnswerInfo;
import com.ots.project.exam.viewmodel.ExamPaperAnswerPageVM;
import com.ots.project.exam.viewmodel.ExamPaperSubmitVM;
 
import java.util.List;
 
public interface ExamPaperAnswerService extends BaseService<ExamPaperAnswer> {
 
    /**
     * 学生考试记录分页
     *
     * @param requestVM 过滤条件
     * @return PageInfo<ExamPaperAnswer>
     */
    PageInfo<ExamPaperAnswer> studentPage(ExamPaperAnswerPageVM requestVM);
 
    /**
     * 计算试卷提交结果(不入库)
     *
     * @param examPaperSubmitVM
     * @param user
     * @return
     */
    ExamPaperAnswerInfo calculateExamPaperAnswer(ExamPaperSubmitVM examPaperSubmitVM, ExamUser user);
 
 
    /**
     * 试卷批改
     *
     * @param examPaperSubmitVM examPaperSubmitVM
     * @return String
     */
    String judge(ExamPaperSubmitVM examPaperSubmitVM);
 
    /**
     * 试卷答题信息转成ViewModel 传给前台
     *
     * @param id 试卷id
     * @return ExamPaperSubmitVM
     */
    ExamPaperSubmitVM examPaperAnswerToVM(Integer id);
 
 
    Integer selectAllCount();
 
    List<Integer> selectMothCount();
}