|
@@ -16,7 +16,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="getSymptopInfo" resultType="com.diagbot.dto.RetrievalDTO">
|
|
|
- SELECT c.`name`,c.id as question_id,b.show_type FROM icss_retrieval a
|
|
|
+ SELECT a.`name`,c.id as question_id,b.show_type FROM icss_retrieval a
|
|
|
LEFT JOIN icss_retrieval_mapping b ON a.id = b.retrieval_id
|
|
|
LEFT JOIN icss_question_info c ON b.question_id = c.id
|
|
|
WHERE a.is_deleted = 'N' AND b.is_deleted = 'N' AND c.is_deleted = 'N'
|
|
@@ -33,7 +33,7 @@
|
|
|
and c.sex_type in ('3',#{sexType})
|
|
|
</if>
|
|
|
UNION
|
|
|
- SELECT c.`name`,c.id as question_id,b.show_type FROM icss_retrieval a
|
|
|
+ SELECT a.`name`,c.id as question_id,b.show_type FROM icss_retrieval a
|
|
|
LEFT JOIN icss_retrieval_mapping b ON a.id = b.retrieval_id
|
|
|
LEFT JOIN icss_question_info c ON b.question_id = c.id
|
|
|
WHERE a.is_deleted = 'N' AND b.is_deleted = 'N' AND c.is_deleted = 'N'
|
|
@@ -50,7 +50,7 @@
|
|
|
and c.sex_type in ('3',#{sexType})
|
|
|
</if>
|
|
|
UNION
|
|
|
- SELECT c.`name`,c.id as question_id,b.show_type FROM icss_retrieval a
|
|
|
+ SELECT a.`name`,c.id as question_id,b.show_type FROM icss_retrieval a
|
|
|
LEFT JOIN icss_retrieval_mapping b ON a.id = b.retrieval_id
|
|
|
LEFT JOIN icss_question_info c ON b.question_id = c.id
|
|
|
WHERE a.is_deleted = 'N' AND b.is_deleted = 'N' AND c.is_deleted = 'N'
|