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);
|
}
|