package com.YuyeTech.HeartRate.game.levelInfo.repository;

import com.YuyeTech.HeartRate.game.levelInfo.projo.LevelCondition;
import com.YuyeTech.HeartRate.dto.LevelConditionDTO;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author:slambb
 * @date:2021/8/4
 */
public interface LevelConditionRepository extends JpaRepository<LevelCondition,Integer>{
    LevelConditionDTO findByTypeAndLimitType(Integer type, Integer limitType);

    List<LevelConditionDTO> findByTypeAndLimitTypeIn(Integer type,List<Integer> limitTypes);


}
