package com.gkhy.exam.system.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.gkhy.exam.system.domain.ExResource;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* <p>
|
* 课程资源表 Mapper 接口
|
* </p>
|
*
|
* @author kzy
|
* @since 2024-06-06 10:25:36
|
*/
|
@Mapper
|
public interface ExResourceMapper extends BaseMapper<ExResource> {
|
/**
|
* 根据条件查询资源列表
|
* @param resource
|
* @return
|
*/
|
List<ExResource>selectResourceList(ExResource resource);
|
|
/**
|
* 根据id获取资源信息
|
* @param resourceId
|
* @return
|
*/
|
ExResource selectResourceById(Long resourceId);
|
|
/**
|
* 校验资源名称是否唯一
|
* @param name
|
* @param companyId
|
* @return
|
*/
|
ExResource checkNameUnique(@Param("name") String name, @Param("companyId") Long companyId);
|
|
/**
|
* 根据课时id查询资源
|
* @param periodId
|
* @return
|
*/
|
ExResource selectResourceByPeriodId(Long periodId);
|
}
|