package com.qmth.teachcloud.report.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qmth.teachcloud.report.business.entity.TBModuleConfig;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 考查点模块配置表 Mapper 接口
 * </p>
 *
 * @author wangliang
 * @since 2021-06-01
 */
public interface TBModuleConfigMapper extends BaseMapper<TBModuleConfig> {
    /**
     * 根据考试id和课程编号查询不重复的模块信息
     * @param examId 考试id
     * @param courseCode 课程编号
     * @return 模块信息
     */
    List<TBModuleConfig> findDistinctModuleInfoByExamIdAndCourseCode(@Param("examId") Long examId, @Param("courseCode") String courseCode);
}
