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.TeacherSubject;
import com.ruoyi.test.mapper.TeacherSubjectMapper;
import com.ruoyi.test.seriver.ITeacherSubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeacherSubjectServiceImpl extends ServiceImpl<TeacherSubjectMapper, TeacherSubject> implements ITeacherSubjectService {

    @Autowired
    private TeacherSubjectMapper teacherSubjectMapper;

    @Override
    public List<TeacherSubject> select(Long teacherid) {
        LambdaQueryWrapper<TeacherSubject> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(TeacherSubject::getTeacherid,teacherid);
        return teacherSubjectMapper.selectList(queryWrapper);
    }
}
