소스 검색

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

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>