package com.ssj.dao.sys.teacher.dao;

import com.ssj.bean.sys.teacher.domain.TeacherWeightRule;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

/**
 * @author yrf
 * @date 2019/5/9 10:35
 */
@Repository
public interface TeacherWeightRuleDao extends JpaRepository<TeacherWeightRule, String> {

    TeacherWeightRule findByTypeAndGradeAndMinValueLessThanEqualAndMaxValueGreaterThan(int type, String grade, BigDecimal value, BigDecimal value1);

    TeacherWeightRule findByTypeAndMinValueLessThanEqualAndMaxValueGreaterThan(int type, BigDecimal value, BigDecimal value1);
}
