Ver código fonte

术语匹配出参加编码sql优化

wangfeng 4 anos atrás
pai
commit
8409978ca5
1 arquivos alterados com 6 adições e 6 exclusões
  1. 6 6
      src/main/resources/mapper/KlLibraryInfoMapper.xml

+ 6 - 6
src/main/resources/mapper/KlLibraryInfoMapper.xml

@@ -59,17 +59,17 @@
             and a.concept_id = b.concept_id
         </if>
         <if test="type!=null and type==127">
-            JOIN kl_tcm_disease b
+            left join kl_tcm_disease b
             on b.is_deleted = 'N'
             and a.concept_id = b.concept_id
         </if>
         <if test="type!=null and type==128">
-            JOIN kl_tcm_syndrome b
+            left join kl_tcm_syndrome b
             on b.is_deleted = 'N'
             and a.concept_id = b.concept_id
         </if>
         <if test="type!=null and type==106">
-            JOIN kl_operation b
+            left join kl_operation b
             on b.is_deleted = 'N'
             and a.concept_id = b.concept_id
         </if>
@@ -124,17 +124,17 @@
             and a.concept_id = b.concept_id
         </if>
         <if test="type!=null and type==127">
-            JOIN kl_tcm_disease b
+            left join kl_tcm_disease b
             on b.is_deleted = 'N'
             and a.concept_id = b.concept_id
         </if>
         <if test="type!=null and type==128">
-            JOIN kl_tcm_syndrome b
+            left join kl_tcm_syndrome b
             on b.is_deleted = 'N'
             and a.concept_id = b.concept_id
         </if>
         <if test="type!=null and type==106">
-            JOIN kl_operation b
+            left join kl_operation b
             on b.is_deleted = 'N'
             and a.concept_id = b.concept_id
         </if>