package common.repository;

import common.model.FlowChange;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface FlowChangeRepository extends JpaRepository<FlowChange, Long> {

    @Query(value = "select * from flow_change where contract_code= ?3 and add_date >=?1 and add_date <= ?2 and del_flag is not true order by add_date desc",nativeQuery = true)
    List<FlowChange> findByAddDate(String startDate, String endDate, String code);
}
