yumeng 4 年之前
父节点
当前提交
8ac37a8608
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      module-common/src/main/java/cn/com/ctop/common/module/mapper/xml/ProjectMapper.xml

+ 1 - 1
module-common/src/main/java/cn/com/ctop/common/module/mapper/xml/ProjectMapper.xml

@@ -67,7 +67,7 @@
             and product_id = #{productId}
             and product_id = #{productId}
         </if>
         </if>
         and material_share = 0
         and material_share = 0
-        <if test="partakeProjectIds != null and partakeProjectIds != ''">
+        <if test="partakeProjectIds != null and partakeProjectIds.size() > 0">
             and id not in
             and id not in
             <foreach item="item" index="index" collection="partakeProjectIds" open="(" separator="," close=")">
             <foreach item="item" index="index" collection="partakeProjectIds" open="(" separator="," close=")">
                 #{item}
                 #{item}