package com.ruoyi.test.seriver.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.test.domain.ClassVedio;
import com.ruoyi.test.mapper.ClassVedioMapper;
import com.ruoyi.test.seriver.IClassVedioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassVedioServiceImpl extends ServiceImpl<ClassVedioMapper, ClassVedio> implements IClassVedioService {

    @Autowired
    private ClassVedioMapper classVedioMapper;

    @Override
    public List<ClassVedio> selectClassVideo(String grade, String Class1) {
        LambdaQueryWrapper<ClassVedio> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(ClassVedio::getGrade,grade)
                .eq(ClassVedio::getClass1,Class1);
        return classVedioMapper.selectList(queryWrapper);
    }
}
