package com.tykj.model.dao;


import com.tykj.model.entity.Rule;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @Description TODO
 * @Author WWW
 * @Date 2021/6/29 11:01
 */
public interface RuleDao extends JpaRepository<Rule, Integer>, JpaSpecificationExecutor<Rule> {

    /**
     * 根据columnId查询
     * @param id
     * @return
     */
    Rule findAllByColumnId(Integer id);
}
