4
hao
2025-04-16 c5fb1fbcbb2bf4d511773d348f9ef625855c61fc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);
 
}