package com.ssj.service.sys.homework.service.impl;

import com.ssj.bean.sys.homework.domain.HomeworkExerciseExcept;
import com.ssj.dao.sys.homework.dao.HomeworkExerciseExceptDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.sys.homework.service.HomeworkExerciseExceptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HomeworkExerciseExceptServiceImpl extends BaseServiceImpl<HomeworkExerciseExcept, String> implements HomeworkExerciseExceptService {
    @Autowired
    private HomeworkExerciseExceptDao homeworkExerciseExceptDao;

    @Override
    public PagingAndSortingRepository<HomeworkExerciseExcept, String> getDao() {
        return homeworkExerciseExceptDao;
    }

    @Override
    public List<HomeworkExerciseExcept> findByCourseNameAndSchoolAndGrade(String courseName, String school, String grade) {
        return homeworkExerciseExceptDao.findByCourseNameAndSchoolAndGrade(courseName, school, grade);
    }
}
