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.SchoolTeacherWages;
import yangtz.cs.liu.campus.domain.teacher.TeacherJy;
import yangtz.cs.liu.campus.mapper.teacher.SchoolTeacherWagesMapper;
import yangtz.cs.liu.campus.mapper.teacher.TeacherJyMapper;
import yangtz.cs.liu.campus.service.teacher.ISchoolTeacherWagesService;
import yangtz.cs.liu.campus.service.teacher.TeacherJyService;

import java.util.List;
@Service
public class TeacherJyImpl extends ServiceImpl<TeacherJyMapper, TeacherJy> implements TeacherJyService {

    @Autowired
    private TeacherJyMapper teacherJyMapper;

    @Override
    public List<TeacherJy> queryList(TeacherJy teacherJy) {
        Long userId = SecurityUtils.getLoginUser().getUser().getUserId();
        teacherJy.setBorrowByid(userId);
        return teacherJyMapper.queryList(teacherJy);
    }
}
