Skip to content

Commit

Permalink
Add mapper xml logic for genomicProfiles in study view filter
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed Oct 24, 2023
1 parent f47d6f8 commit 5d496f4
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,19 @@
</include>
</foreach>
</if>
<if test="studyViewFilter.genomicProfiles != null and !studyViewFilter.genomicProfiles.isEmpty()">
<foreach item="genomicProfileIds" collection="studyViewFilter.genomicProfiles" open="(" separator="," close=")">
INTERSECT
SELECT sample_unique_id
FROM sample_in_data_profile
WHERE genetic_profile_stable_id IN
<foreach item="genomicProfileId" collection="#{genomicProfileIds}" open="(" separator="," close=")">
<foreach item="studyId" collection="studyViewFilter.studyIds" separator=",">
concat(#{studyId}, '_', #{genomicProfileId});
</foreach>
</foreach>
</foreach>
</if>
<!-- ... extend for other elements of the StudyViewFilter object -->
</trim>
</sql>
Expand Down

0 comments on commit 5d496f4

Please sign in to comment.