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

import com.ssj.bean.sys.lesson.domain.LessonServicePrice;
import com.ssj.dao.sys.lesson.dao.LessonServicePriceDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.sys.lesson.service.LessonServicePriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class LessonServicePriceServiceImpl extends BaseServiceImpl<LessonServicePrice, String> implements LessonServicePriceService {

    @Autowired
    private LessonServicePriceDao lessonServicePriceDao;

    @Override
    public PagingAndSortingRepository<LessonServicePrice, String> getDao() {
        return lessonServicePriceDao;
    }

    @Override
    public LessonServicePrice findByGradeAndTeacherLeverAndType(String grade,String teacherLever,int type) {
        return lessonServicePriceDao.findByGradeAndTeacherLeverAndType(grade, teacherLever,type);
    }

}
