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

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

import java.util.List;
import java.util.Set;

/**
 * 课程学生缴费表(CourseScheduleStudentPayment)表数据库访问层
 *
 * @author hgw
 * @since 2022-03-18 15:29:12
 */
public interface CourseScheduleStudentPaymentDao extends BaseMapper<CourseScheduleStudentPayment> {

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

    /**
     * @param courseGroupId
     * @param courseGroupType
     * @return java.util.List<java.lang.Long>
     * @description: 获取学员列表
     * @author zx
     * @date 2022/3/23 16:18
     */
    Set<Long> queryStudentIds(@Param("courseGroupId") Long courseGroupId,
                              @Param("courseGroupType") String courseGroupType);

    /**
     * 根据课程组id查询学员信息
     *
     * @param groupId 课程组id
     */
    List<LiveCourseInfoVo.CourseBuyStudentVo> queryStudentInfoByGroupId(@Param("groupId") Long groupId);

    //查询所有购买陪练课用户id
    List<Long> selectAll();

    //根据查询锁定中的课程
    List<CourseScheduleStudentPaymentVo> selectPaymentList(String orderNo);
}

