package com.xydl.cac.repository;

import com.xydl.cac.entity.Bdz;
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 BdzRepository extends JpaRepository<Bdz, Integer>, JpaSpecificationExecutor<Bdz> {

    List<Bdz> findByMc(String mc);

    List<Bdz> findByMcAndIdIsNot(String mc, Integer id);
}