|
4 | 4 | <mapper namespace="org.cbioportal.legacy.persistence.mybatis.SampleListMapper"> |
5 | 5 |
|
6 | 6 | <sql id="select"> |
7 | | - <!-- ROB: TODO : there is no GROUP BY clause in this file, so why were these problems? --> |
8 | | - ANY_VALUE(sample_list.list_id) AS "${prefix}listId", |
9 | | - ANY_VALUE(sample_list.stable_id) AS "${prefix}stableId" |
| 7 | + sample_list.list_id AS "listId", |
| 8 | + sample_list.stable_id AS "stableId" |
10 | 9 | <if test="projection == 'SUMMARY' || projection == 'DETAILED'"> |
11 | 10 | , |
12 | | - ANY_VALUE(sample_list.cancer_study_id) AS "${prefix}cancerStudyId", |
13 | | - ANY_VALUE(cancer_study.cancer_study_identifier) AS "${prefix}cancerStudyIdentifier", |
14 | | - ANY_VALUE(sample_list.category) AS "${prefix}category", |
15 | | - ANY_VALUE(sample_list.name) AS "${prefix}name", |
16 | | - ANY_VALUE(sample_list.description) AS "${prefix}description" |
| 11 | + sample_list.cancer_study_id AS "cancerStudyId", |
| 12 | + cancer_study.cancer_study_identifier AS "cancerStudyIdentifier", |
| 13 | + sample_list.category AS "category", |
| 14 | + sample_list.name AS "name", |
| 15 | + sample_list.description AS "description" |
17 | 16 | </if> |
18 | 17 | <if test="projection == 'DETAILED'"> |
19 | 18 | , |
20 | | - <include refid="org.cbioportal.legacy.persistence.mybatis.StudyMapper.select"> |
21 | | - <property name="prefix" value="${prefix}cancerStudy."/> |
22 | | - </include> |
| 19 | + cancer_study.type_of_cancer_id AS "cancerStudy.typeOfCancerId", |
| 20 | + cancer_study.name AS "cancerStudy.name", |
| 21 | + cancer_study.description AS "cancerStudy.description", |
| 22 | + cancer_study.public AS "cancerStudy.publicStudy", |
| 23 | + cancer_study.pmid AS "cancerStudy.pmid", |
| 24 | + cancer_study.citation AS "cancerStudy.citation", |
| 25 | + cancer_study.groups AS "cancerStudy.groups", |
| 26 | + cancer_study.status AS "cancerStudy.status", |
| 27 | + cancer_study.import_date AS "cancerStudy.importDate", |
| 28 | + reference_genome.name AS "cancerStudy.referenceGenome" |
23 | 29 | </if> |
24 | 30 | </sql> |
25 | 31 |
|
26 | 32 | <select id="getAllSampleLists" resultType="org.cbioportal.legacy.model.SampleList"> |
27 | 33 | SELECT |
28 | | - <include refid="select"> |
29 | | - <property name="prefix" value=""/> |
30 | | - </include> |
| 34 | + <include refid="select"/> |
31 | 35 | FROM sample_list |
32 | 36 | INNER JOIN cancer_study ON sample_list.cancer_study_id = cancer_study.cancer_study_id |
33 | 37 | INNER JOIN reference_genome ON cancer_study.reference_genome_id = reference_genome.reference_genome_id |
|
63 | 67 |
|
64 | 68 | <select id="getSampleList" resultType="org.cbioportal.legacy.model.SampleList"> |
65 | 69 | SELECT |
66 | | - <include refid="select"> |
67 | | - <property name="prefix" value=""/> |
68 | | - </include> |
| 70 | + <include refid="select"/> |
69 | 71 | FROM sample_list |
70 | 72 | INNER JOIN cancer_study ON sample_list.cancer_study_id = cancer_study.cancer_study_id |
71 | 73 | INNER JOIN reference_genome ON cancer_study.reference_genome_id = reference_genome.reference_genome_id |
|
74 | 76 |
|
75 | 77 | <select id="getSampleLists" resultType="org.cbioportal.legacy.model.SampleList"> |
76 | 78 | SELECT |
77 | | - <include refid="select"> |
78 | | - <property name="prefix" value=""/> |
79 | | - </include> |
| 79 | + <include refid="select"/> |
80 | 80 | FROM sample_list |
81 | 81 | INNER JOIN cancer_study ON sample_list.cancer_study_id = cancer_study.cancer_study_id |
82 | 82 | INNER JOIN reference_genome ON cancer_study.reference_genome_id = reference_genome.reference_genome_id |
|
0 commit comments