heheng
2025-06-25 076baf821f6ff0296826ecebac31b45ecce346a3
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
package com.gkhy.exam.system.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import com.gkhy.exam.system.domain.ExCourseChapterPeriod;
 
import java.util.List;
 
/**
 * <p>
 * 课时信息表 服务类
 * </p>
 *
 * @author kzy
 * @since 2024-06-05 15:07:36
 */
public interface ExCourseChapterPeriodService extends IService<ExCourseChapterPeriod> {
 
    /**
     * 根据id查询学时信息
     *
     * @param periodId 学时ID
     * @return 章节信息
     */
    public ExCourseChapterPeriod selectPeriodById(Long periodId);
 
 
    /**
     * 新增学时
     *
     * @param period 学时信息
     * @return 结果
     */
    public int insertPeriod(ExCourseChapterPeriod period);
 
 
    /**
     * 修改学时
     *
     * @param period 学时信息
     * @return 结果
     */
    public int updatePeriod(ExCourseChapterPeriod period);
 
    /**
     * 删除学时
     *
     * @param periodId 学时ID
     * @return 结果
     */
    public int deletePeriodById(Long periodId);
 
 
    /**
     * 校验学时名称是否唯一
     *
     * @param period 学时信息
     * @return boolean
     */
    public boolean checkNameUnique(ExCourseChapterPeriod period);
 
    /**
     * 根据章节id获取课时信息
     * @param chapterId
     * @return
     */
    public List<ExCourseChapterPeriod> selectChapterPeriodByChapterId(Long chapterId);
 
 
}