xiangpei
2025-05-14 47cd9ecc0eff38ffe6b3b794b2bf197e958f4403
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
package com.mindskip.xzs.service;
 
import com.github.pagehelper.PageInfo;
import com.mindskip.xzs.domain.ExamPaper;
import com.mindskip.xzs.domain.User;
import com.mindskip.xzs.domain.vo.ExamTemplatesVO;
import com.mindskip.xzs.domain.vo.PaperExcelVO;
import com.mindskip.xzs.domain.vo.UserVO;
import com.mindskip.xzs.viewmodel.admin.exam.ExamPaperEditRequestVM;
import com.mindskip.xzs.viewmodel.admin.exam.ExamPaperEditRequestVO;
import com.mindskip.xzs.viewmodel.admin.exam.ExamPaperPageRequestVM;
import com.mindskip.xzs.viewmodel.student.dashboard.PaperFilter;
import com.mindskip.xzs.viewmodel.student.dashboard.PaperInfo;
import com.mindskip.xzs.viewmodel.student.exam.ExamPaperPageVM;
 
import java.util.List;
 
public interface ExamPaperService extends BaseService<ExamPaper> {
 
    PageInfo<ExamPaper> page(ExamPaperPageRequestVM requestVM);
 
    PageInfo<ExamPaper> taskExamPage(ExamPaperPageRequestVM requestVM);
 
    PageInfo<ExamPaper> studentPage(ExamPaperPageVM requestVM);
 
    ExamPaper savePaperFromVM(ExamPaperEditRequestVM examPaperEditRequestVM, User user) throws Exception;
 
    ExamPaperEditRequestVO examPaperToVM(Integer id);
 
    List<PaperInfo> indexPaper(PaperFilter paperFilter);
 
    Integer selectAllCount(List<Integer> deptIds);
 
    List<Integer> selectMothCount();
 
    Integer removeByIds(Integer[] ids);
 
    List<ExamPaper> gets(Integer[] ids);
 
    /**
     * 普通试卷答题记录
     *
     * @param id
     * @return
     */
    List<PaperExcelVO> getPaperExcelById(Integer id);
 
    /**
     * 随机试卷答题记录
     *
     * @param id
     * @return
     */
    List<PaperExcelVO> getRandomPaperExcelById(Integer id);
 
    void missExam(ExamPaperEditRequestVM model);
 
    List<ExamPaper> list(List<Integer> deptIds);
 
    /**
     * 获取部门的学生
     *
     * @param userVO
     * @param adminDeptIds
     * @return
     */
    PageInfo<UserVO> selectStudent(UserVO userVO, List<Integer> adminDeptIds);
 
    void missExamByTemplateId(ExamTemplatesVO model);
 
    /**
     * 考试统计的查询条件
     * @return 试卷id、名称、类型
     */
    List<ExamPaper> queryCondition();
}