Explorar o código

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

wangfeng %!s(int64=4) %!d(string=hai) anos
pai
achega
8409978ca5
Modificáronse 1 ficheiros con 6 adicións e 6 borrados
  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>