package com.zhongzheng.modules.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhongzheng.modules.course.bo.CourseMenuQueryBo;
import com.zhongzheng.modules.course.domain.CourseChapterBusiness;
import com.zhongzheng.modules.course.domain.CourseChapterSection;
import com.zhongzheng.modules.course.vo.CourseChapterSectionVo;
import com.zhongzheng.modules.course.vo.CourseUserChapterSectionVo;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * 章与节关系Mapper接口
 *
 * @author hjl
 * @date 2021-10-12
 */
public interface CourseChapterSectionMapper extends BaseMapper<CourseChapterSection> {
    List<CourseChapterSectionVo> getListById(Long id);
    List<CourseChapterSectionVo> getInformById(Long id);
    Long getListTotalTime(Long id);

    List<CourseUserChapterSectionVo> sectionList(CourseMenuQueryBo bo);

    List<CourseUserChapterSectionVo> examList(CourseMenuQueryBo bo);

    Integer rebuildCheck(@Param("typeId") Long typeId,@Param("gradeId") Long gradeId,
                         @Param("userId") Long userId,@Param("moduleId") Long moduleId,@Param("chapterId") Long chapterId,@Param("examId") Long examId);
}
