Skip to content

Commit

Permalink
Update DataSummaryRepository.java
Browse files Browse the repository at this point in the history
Exclude sunsetted files for spatial viewer
  • Loading branch information
rlreamy authored Jul 3, 2024
1 parent 1fc97e4 commit 2519820
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/kpmp/dataSummary/DataSummaryRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ public interface DataSummaryRepository extends CrudRepository<DataSummaryValue,
@Query(value = "select count(distinct(redcap_id)) from participant p "
+ "join file_participant fp on p.participant_id = fp.participant_id "
+ "join file f on f.file_id= fp.file_id " + "join sv_file_info sv on sv.file_id = f.file_id "
+ "where sv.config_type = :data_type " + "and p.tissue_type = :tissue_type", nativeQuery = true)
+ "where sv.config_type = :data_type " + "and p.tissue_type = :tissue_type "
+ "and sv.release_sunset_version is null", nativeQuery = true)
Long getDataSummaryCount(@Param("tissue_type") String tissue_type, @Param("data_type") String data_type);

@Cacheable("dataSummaryTotal")
@Query(value = "select count(distinct(redcap_id)) from participant p "
+ "join file_participant fp on p.participant_id = fp.participant_id "
+ "join file f on f.file_id= fp.file_id " + "join sv_file_info sv on sv.file_id = f.file_id "
+ "where sv.config_type = :data_type ", nativeQuery = true)
+ "where sv.config_type = :data_type and sv.release_sunset_version is null", nativeQuery = true)
Long getDataSummaryTotal(@Param("data_type") String data_type);

@Cacheable("repoDataSummaryCount")
Expand Down

0 comments on commit 2519820

Please sign in to comment.