package com.its.op.dao.repository.its.ifsc;

import com.its.op.entity.its.ifsc.TbIfscTraf;
import com.its.op.entity.its.ifsc.TbIfscTrafSimple;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TbIfscTrafSimpleRepository extends JpaRepository<TbIfscTrafSimple, Long>, JpaSpecificationExecutor<TbIfscTraf> {

    @Query("select p from TbIfscTrafSimple p where p.prcnDt >= to_char(sysdate - 10/1440, 'YYYYMMDDHH24MISS')")
    List<TbIfscTrafSimple> findAll();
}
