package com.xydl.cac.repository;

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

    List<ModevTypePoint> findByModevtypeId(Integer modevtypeId);

    List<ModevTypePoint> findByModevtypeIdAndField(Integer modevtypeId, String field);

    void deleteByModevtypeId(Integer modevtypeId);
}