package com.yonge.cooleshow.biz.dal.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yonge.cooleshow.biz.dal.dao.CoursePlanDao;
import com.yonge.cooleshow.biz.dal.entity.CoursePlan;
import com.yonge.cooleshow.biz.dal.service.CoursePlanService;
import com.yonge.cooleshow.biz.dal.vo.LiveCourseInfoVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 课程计划表(CoursePlan)表服务实现类
 *
 * @author hgw
 * @since 2022-03-18 15:29:11
 */
@Service("coursePlanService")
public class CoursePlanServiceImpl extends ServiceImpl<CoursePlanDao, CoursePlan> implements CoursePlanService {

    private final static Logger log = LoggerFactory.getLogger(CoursePlanServiceImpl.class);

    @Override
    public CoursePlanDao getDao() {
        return this.baseMapper;
    }

    /**
     * 根据课程组id查询课程计划信息
     *
     * @param groupId 课程组id
     */
    @Override
    public List<LiveCourseInfoVo.PlanVo> queryCoursePlanByGroupId(Long groupId) {
        return baseMapper.queryCoursePlanByGroupId(groupId);
    }

}

