4
hao
2025-04-16 c5fb1fbcbb2bf4d511773d348f9ef625855c61fc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.dev.dao;
 
import com.dev.entity.ApiDashboardWidget;
import com.dev.entity.ApiLargeScreen;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
 
import java.util.List;
 
public interface ApiLargeScreenDao  extends CrudRepository<ApiLargeScreen, Long>, JpaSpecificationExecutor<ApiLargeScreen> {
 
//    @Query(value = "select TITLE as title, REPORTCODE  as reportCode  from API_LARGE_SCREEN ", nativeQuery = true)
    public List<ApiLargeScreen> findAll();
 
      @Query(value = "select * from API_LARGE_SCREEN  where bsCode = ?1 ", nativeQuery = true)
      ApiLargeScreen getDataByBsCode(String bsCode);
}