浏览代码

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

kongwz 3 年之前
父节点
当前提交
5f71c7971b
共有 1 个文件被更改,包括 6 次插入0 次删除
  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>