chendayu vor 2 Jahren
Ursprung
Commit
7e8b9106cb
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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}