package common.repository;

import common.model.CalculationFlow;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface CalculationFlowRepository extends JpaRepository<CalculationFlow,Long> {

    @Query(value = "select * from calculation_flow where status = ?1",nativeQuery = true)
    List<CalculationFlow> findByStatus(int status);
}
