chendayu %!s(int64=2) %!d(string=hai) anos
pai
achega
7e8b9106cb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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}