package com.yonge.cooleshow.biz.dal.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yonge.cooleshow.biz.dal.entity.CoursePlan;
import com.yonge.cooleshow.biz.dal.vo.LiveCourseInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 课程计划表(CoursePlan)表数据库访问层
 *
 * @author hgw
 * @since 2022-03-18 15:29:11
 */
public interface CoursePlanDao extends BaseMapper<CoursePlan> {

    int insertBatch(@Param("entities") List<CoursePlan> entities);

    /**
     * 根据课程组id查询课程计划信息
     */
    List<LiveCourseInfoVo.PlanVo> queryCoursePlanByGroupId(@Param("groupId") Long groupId);

}

