Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,28 @@
<mapper namespace="org.cbioportal.legacy.persistence.mybatis.SampleListMapper">

<sql id="select">
<!-- ROB: TODO : there is no GROUP BY clause in this file, so why were these problems? -->
ANY_VALUE(sample_list.list_id) AS "${prefix}listId",
ANY_VALUE(sample_list.stable_id) AS "${prefix}stableId"
sample_list.list_id AS "${prefix}listId",
sample_list.stable_id AS "${prefix}stableId"
<if test="projection == 'SUMMARY' || projection == 'DETAILED'">
,
ANY_VALUE(sample_list.cancer_study_id) AS "${prefix}cancerStudyId",
ANY_VALUE(cancer_study.cancer_study_identifier) AS "${prefix}cancerStudyIdentifier",
ANY_VALUE(sample_list.category) AS "${prefix}category",
ANY_VALUE(sample_list.name) AS "${prefix}name",
ANY_VALUE(sample_list.description) AS "${prefix}description"
sample_list.cancer_study_id AS "${prefix}cancerStudyId",
cancer_study.cancer_study_identifier AS "${prefix}cancerStudyIdentifier",
sample_list.category AS "${prefix}category",
sample_list.name AS "${prefix}name",
sample_list.description AS "${prefix}description"
</if>
<if test="projection == 'DETAILED'">
,
<include refid="org.cbioportal.legacy.persistence.mybatis.StudyMapper.select">
<property name="prefix" value="${prefix}cancerStudy."/>
</include>
cancer_study.type_of_cancer_id AS "${prefix}cancerStudy.typeOfCancerId",
cancer_study.name AS "${prefix}cancerStudy.name",
cancer_study.description AS "${prefix}cancerStudy.description",
cancer_study.public AS "${prefix}cancerStudy.publicStudy",
cancer_study.pmid AS "${prefix}cancerStudy.pmid",
cancer_study.citation AS "${prefix}cancerStudy.citation",
cancer_study.groups AS "${prefix}cancerStudy.groups",
cancer_study.status AS "${prefix}cancerStudy.status",
cancer_study.import_date AS "${prefix}cancerStudy.importDate",
reference_genome.name AS "${prefix}cancerStudy.referenceGenome"
</if>
</sql>

Expand Down
Loading