chendayu 2 年之前
父節點
當前提交
7e8b9106cb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      PAS/src/main/resources/mapper/StructureMapper.xml

+ 1 - 1
PAS/src/main/resources/mapper/StructureMapper.xml

@@ -204,7 +204,7 @@
         left join asso_structure_patent struP on find_in_set(stru.id, struP.path)
         where stru.parent_id = #{parentId}
         and stru.product_id = #{productId}
-        <if test="ids != null">
+        <if test="ids != null and ids.size > 0">
             and stru.id in (
             <foreach collection="ids" item="item" separator=",">
                 #{item}