package com.xydl.cac.repository;

import com.xydl.cac.entity.WarnRule;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface WarnRuleRepository extends JpaRepository<WarnRule, Integer>, JpaSpecificationExecutor<WarnRule> {

    List<WarnRule> findBySensorId(Integer sensorId);

    List<WarnRule> findByModevtypePointId(Integer modevtypePointId);
}