package com.dev.dao; import java.util.List; import java.util.Map; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.CrudRepository; import com.dev.entity.ApiCode; public interface ApiCodeDao extends CrudRepository, JpaSpecificationExecutor { public List findAll(); // public List findByIsDelAndBsCode(Integer isDel,String code); public List findByIsDelAndBsCode(Integer isDel,String code); @Query(value = "select * from api_code where is_del=?1 and bs_code=?2", nativeQuery = true) public List getByIsDelAndBsCode(Integer isDel,String code); }