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<ApiCode, Long>, JpaSpecificationExecutor<ApiCode> {
|
|
public List<ApiCode> findAll();
|
|
// public List<ApiCode> findByIsDelAndBsCode(Integer isDel,String code);
|
public List<ApiCode> findByIsDelAndBsCode(Integer isDel,String code);
|
|
@Query(value = "select * from api_code where is_del=?1 and bs_code=?2", nativeQuery = true)
|
public List<ApiCode> getByIsDelAndBsCode(Integer isDel,String code);
|
|
}
|