package com.its.api.bis.repository;

import com.its.api.bis.model.entity.BisProcessStatusHistory;
import com.its.api.bis.model.entity.BisProcessStatusHistoryKey;
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 BisProcessStatusHistoryRepository extends JpaRepository<BisProcessStatusHistory, BisProcessStatusHistoryKey>, JpaSpecificationExecutor<BisProcessStatusHistory> {

    @Query("select p from BisProcessStatusHistory p where p.processstatekind in ('1', '2', '4')")
    List<BisProcessStatusHistory> findAllStts();

}
