package com.ym.mec.biz.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ym.mec.biz.dal.dao.TeacherDefaultVipGroupSalaryDao;
import com.ym.mec.biz.dal.entity.TeacherDefaultVipGroupSalary;
import com.ym.mec.biz.service.TeacherDefaultVipGroupSalaryService;
import com.ym.mec.common.dal.BaseDAO;
import com.ym.mec.common.service.impl.BaseServiceImpl;

@Service
public class TeacherDefaultVipGroupSalaryServiceImpl extends BaseServiceImpl<Long, TeacherDefaultVipGroupSalary>  implements TeacherDefaultVipGroupSalaryService {
	
	@Autowired
	private TeacherDefaultVipGroupSalaryDao teacherDefaultVipGroupSalaryDao;

	@Override
	public BaseDAO<Long, TeacherDefaultVipGroupSalary> getDAO() {
		return teacherDefaultVipGroupSalaryDao;
	}

	@Override
	public TeacherDefaultVipGroupSalary findByTeacherAndCategory(Long userId, Long categoryId) {
		return teacherDefaultVipGroupSalaryDao.findByTeacherAndCategory(userId,categoryId);
	}
}