|
@@ -53,6 +53,8 @@
|
|
</if>
|
|
</if>
|
|
FROM
|
|
FROM
|
|
kl_library_info a
|
|
kl_library_info a
|
|
|
|
+ LEFT JOIN kl_concept c
|
|
|
|
+ ON a.concept_id = c.id
|
|
<if test="type!=null and type==100">
|
|
<if test="type!=null and type==100">
|
|
left join kl_disease b
|
|
left join kl_disease b
|
|
on b.is_deleted = 'N'
|
|
on b.is_deleted = 'N'
|
|
@@ -74,6 +76,7 @@
|
|
and a.concept_id = b.concept_id
|
|
and a.concept_id = b.concept_id
|
|
</if>
|
|
</if>
|
|
WHERE a.is_deleted = "N"
|
|
WHERE a.is_deleted = "N"
|
|
|
|
+ AND c.status = 1
|
|
<if test="type!=null">
|
|
<if test="type!=null">
|
|
AND a.type_id = #{type}
|
|
AND a.type_id = #{type}
|
|
</if>
|
|
</if>
|
|
@@ -118,6 +121,8 @@
|
|
</if>
|
|
</if>
|
|
FROM
|
|
FROM
|
|
kl_library_info a
|
|
kl_library_info a
|
|
|
|
+ LEFT JOIN kl_concept c
|
|
|
|
+ ON a.concept_id = c.id
|
|
<if test="type!=null and type==100">
|
|
<if test="type!=null and type==100">
|
|
left join kl_disease b
|
|
left join kl_disease b
|
|
on b.is_deleted = 'N'
|
|
on b.is_deleted = 'N'
|
|
@@ -139,6 +144,7 @@
|
|
and a.concept_id = b.concept_id
|
|
and a.concept_id = b.concept_id
|
|
</if>
|
|
</if>
|
|
WHERE a.is_deleted = "N"
|
|
WHERE a.is_deleted = "N"
|
|
|
|
+ AND c.status = 1
|
|
<if test="type!=null">
|
|
<if test="type!=null">
|
|
AND a.type_id = #{type}
|
|
AND a.type_id = #{type}
|
|
</if>
|
|
</if>
|