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
package com.mindskip.xzs.repository;
 
import com.mindskip.xzs.domain.ExamPaperClasses;
import com.mindskip.xzs.domain.other.KeyValue;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * @version 2.2.0
 * @description: 班级试卷
 * Copyright (C), 2020-2021, 武汉思维跳跃科技有限公司
 * @date 2021 /9/7 9:45
 */
@Mapper
public interface ExamPaperClassesMapper extends BaseMapper<ExamPaperClasses> {
    int deleteByPrimaryKey(Integer id);
 
    int insert(ExamPaperClasses record);
 
    int insertSelective(ExamPaperClasses record);
 
    ExamPaperClasses selectByPrimaryKey(Integer id);
 
    int updateByPrimaryKeySelective(ExamPaperClasses record);
 
    int updateByPrimaryKey(ExamPaperClasses record);
 
    /**
     * 获取试卷下的班级
     *
     * @param paperId the paper id
     * @return the exam paper classes
     */
    List<ExamPaperClasses> getExamPaperClasses(@Param("paperId") Integer paperId);
 
    /**
     * 根据班级,获取试卷数量
     *
     * @param classIds the class ids
     * @return the paper class count
     */
    List<KeyValue> getPaperClassCount(@Param("classIds") List<Integer> classIds);
}