package com.its.api.bis.repository;

import com.its.api.bis.model.entity.BisProcess;
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 BisProcessRepository extends JpaRepository<BisProcess, String>, JpaSpecificationExecutor<Process> {

    @Query("select p from BisProcess p where p.processid in (90201, 90202, 90203, 90204, 90205, " +
            "                                  90101, 90102, 90103, 90104, 90105, " +
            "                                  110201, " +
            "                                  110101, " +
            "                                  80101, 80102, " +
            "                                  10901, " +
            "                                  11001, " +
            "                                  11101, " +
            "                                  11201)")
    List<BisProcess> findAllList();
}
