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
package com.mindskip.xzs.repository;
 
import com.mindskip.xzs.domain.ExamPaper;
import com.mindskip.xzs.domain.other.KeyValue;
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.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 org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.Date;
import java.util.List;
 
@Mapper
public interface ExamPaperMapper extends BaseMapper<ExamPaper> {
 
    List<ExamPaper> page(ExamPaperPageRequestVM requestVM);
 
    List<ExamPaper> taskExamPage(ExamPaperPageRequestVM requestVM);
 
    List<ExamPaper> studentPage(ExamPaperPageVM requestVM);
 
    List<PaperInfo> indexPaper(PaperFilter paperFilter);
 
    Integer selectAllCount(List<Integer> deptIds);
 
    List<KeyValue> selectCountByDate(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
 
    int updateTaskPaper(@Param("taskId") Integer taskId,@Param("paperIds") List<Integer> paperIds);
 
    int clearTaskPaper(@Param("paperIds") List<Integer> paperIds);
 
    Integer removeByIds(@Param("ids") Integer[] ids);
 
    List<ExamPaper> gets(@Param("ids") Integer[] ids);
 
    List<PaperExcelVO> getPaperExcelById(@Param("id") Integer id);
 
    List<ExamPaper> list(List<Integer> deptIds);
 
    List<ExamPaper> template(List<Integer> deptIds);
 
    List<UserVO> selectStudent(UserVO userVO);
 
    List<Integer> getExamPaperByTemplateId(ExamTemplatesVO model);
 
    List<ExamPaper> getExamPaper();
 
    List<ExamPaper> getTemplate();
 
    /**
     * 获取随机试卷的exampaper
     *
     * @param id
     * @return
     */
    List<PaperExcelVO> getRandomPaperExcelById(Integer id);
}