Browse Source

优化sql

wangfeng 4 years ago
parent
commit
d34e00d124
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cdssman-service/src/main/resources/mapper/KlRelationMapper.xml

+ 1 - 0
cdssman-service/src/main/resources/mapper/KlRelationMapper.xml

@@ -188,6 +188,7 @@
         ON re.conceptId = con.id
         LEFT JOIN kl_lexicon le ON con.`lib_type` = le.`code`
         WHERE con.is_deleted = "N"
+        AND re.conceptId IS NULL
         AND con.lib_type = 100
         AND con.status= 1
         <if test="diseaseName != null and diseaseName != ''">