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 25, 2023
1 parent f47d6f8 commit 2ff0067
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,16 @@
</include>
</foreach>
</if>
<if test="studyViewFilter.genomicProfiles != null">
<foreach item="genomicProfileIds" collection="studyViewFilter.genomicProfiles" open="INTERSECT" separator="INTERSECT">
SELECT sample_unique_id
FROM sample_in_genomic_profile
WHERE genomic_profile_stable_id_short IN
<foreach item="genomicProfileId" collection="genomicProfileIds" open="(" separator="," close=")">
#{genomicProfileId}
</foreach>
</foreach>
</if>
<!-- ... extend for other elements of the StudyViewFilter object -->
</trim>
</sql>
Expand Down

0 comments on commit 2ff0067

Please sign in to comment.