Просмотр исходного кода

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

kongwz 3 лет назад
Родитель
Сommit
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>