package yangtz.cs.liu.campus.service.impl.teacher;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import yangtz.cs.liu.campus.domain.teacher.TeacherBx;
import yangtz.cs.liu.campus.domain.teacher.TeacherLy;
import yangtz.cs.liu.campus.mapper.teacher.TeacherBxMapper;
import yangtz.cs.liu.campus.mapper.teacher.TeacherLyMapper;
import yangtz.cs.liu.campus.service.teacher.TeacherBxService;
import yangtz.cs.liu.campus.service.teacher.TeacherLyService;

import java.util.List;

@Service
public class TeacherBxImpl extends ServiceImpl<TeacherBxMapper, TeacherBx> implements TeacherBxService {

    @Autowired
    private TeacherBxMapper teacherBxMapper;
    @Override
    public List<TeacherBx> querylistbx(TeacherBx teacherBx) {
        Long userId = SecurityUtils.getLoginUser().getUser().getUserId();
        teacherBx.setReportRepairId(userId);
        return teacherBxMapper.querylistbx(teacherBx);
    }
}
