package com.tykj.workflowcore.model.repository;

import com.tykj.workflowcore.model.entity.Quote;
import org.springframework.data.jpa.repository.JpaRepository;

import javax.transaction.Transactional;
import java.util.List;

public interface QuoteRepository extends JpaRepository<Quote, Integer> {

    List<Quote> findByColumnInfoId(Integer columnInfoId);

    @Transactional
    void deleteAllByColumnInfoId(Integer columnInfoId);

}
