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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yonge.cooleshow.biz.dal.entity.UserBindingTeacher;
import com.yonge.cooleshow.biz.dal.queryInfo.TeacherBindingUserQueryInfo;
import com.yonge.cooleshow.biz.dal.vo.CourseStudentVo;
import com.yonge.cooleshow.biz.dal.vo.TeacherVo;
import com.yonge.cooleshow.biz.dal.vo.userBindingTeacher.UserBindingTeacherWrapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author: cy
 * @Date: 2022/5/26
 */
public interface UserBindingTeacherDao extends BaseMapper<UserBindingTeacher> {
    //查询学员
    IPage<CourseStudentVo> selectStudent(Page<CourseStudentVo> pageInfo, @Param("param") Map<String, Object> param);

    //查询绑定的老师
    TeacherVo getBindTeacherByPhone(@Param("phone") String phone);

    //查询超过days天数没有排课的绑定学院
    List<UserBindingTeacher> queryUnbindList(@Param("days") Integer days);

    /**
     * 查询绑定的学员信息
     *
     * @param page
     * @param query
     * @return
     */
    IPage<UserBindingTeacherWrapper> selectBindingUserPage(@Param("page") IPage<UserBindingTeacherWrapper> page,
                                                           @Param("query") TeacherBindingUserQueryInfo.BindingUserQuery query);
}