Bladeren bron

在集合业务中,搜索术语,排除已有关系的术语

kongwz 3 jaren geleden
bovenliggende
commit
5f71c7971b
1 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  1. 6 0
      src/main/resources/mapper/KlConceptMapper.xml

+ 6 - 0
src/main/resources/mapper/KlConceptMapper.xml

@@ -804,6 +804,12 @@
         <if test="libType!=null">
             kc.lib_type = #{libType}
         </if>
+        <if test="excludedConceptIds != null and excludedConceptIds.size > 0">
+            AND kc.id not in
+            <foreach item="id" collection="excludedConceptIds" open="(" separator="," close=")">
+                #{id}
+            </foreach>
+        </if>
         <if test="names != null and names.size > 0">
         and
             <choose>