package com.ruoyi.test.seriver.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.test.domain.InstructorManageClass;
import com.ruoyi.test.mapper.InstructorManageClassMapper;
import com.ruoyi.test.seriver.IInstructorManageClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class InstructorManageClassServiceImpl extends ServiceImpl<InstructorManageClassMapper, InstructorManageClass> implements IInstructorManageClassService {

    @Autowired
    private InstructorManageClassMapper instructorManageClassMapper;

    @Override
    public InstructorManageClass selectByGradeAndClass1(String grade, String Class1) {
        LambdaQueryWrapper<InstructorManageClass> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(InstructorManageClass::getGrade,grade)
                .eq(InstructorManageClass::getClass1,Class1);
        return instructorManageClassMapper.selectOne(queryWrapper);
    }
}
