“djh”
3 天以前 a0469a082320c33fc19d4e7239b7ddde67945227
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.gkhy.exam.system.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gkhy.exam.system.domain.ExCoursePhase;
import org.apache.ibatis.annotations.Mapper;
 
import java.util.List;
 
/**
 * <p>
 * 课时批次表 Mapper 接口
 * </p>
 *
 * @author kzy
 * @since 2024-06-05 15:07:36
 */
@Mapper
public interface ExCoursePhaseMapper extends BaseMapper<ExCoursePhase> {
    /**
     * 分页获取批次列表
     * @param coursePhase
     * @return
     */
    List<ExCoursePhase> selectCoursePhaseList(ExCoursePhase coursePhase);
 
    /**
     * 根据id获取批次信息
     * @param phaseId
     * @return
     */
    ExCoursePhase selectCoursePhaseById(Long phaseId);
 
    /**
     * 校验批次名称是否唯一
     * @param name
     * @return
     */
    ExCoursePhase checkNameUnique(String name);
 
    /**
     * 根据课程id获取批次数量
     * @param courseId
     * @return
     */
    Integer selectCountByCourseId(Long courseId);
 
    /**
     * 根据id删除批次
     * @param phaseId
     * @return
     */
    int deleteByPhaseId(Long phaseId);
}