yumeng 4 年之前
父节点
当前提交
4f54995e2d

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

@@ -137,7 +137,7 @@
         <if test="materialName != null">
         <if test="materialName != null">
             and matInfo.material_name like concat('%',#{materialName},'%')
             and matInfo.material_name like concat('%',#{materialName},'%')
         </if>
         </if>
-        <if test="projectIds != null and projectIds.length() >0 ">
+        <if test="projectIds != null and projectIds.length() != 0 ">
             and matInfo.project_id in
             and matInfo.project_id in
             <foreach item="item" index="index" collection="projectIds" open="(" separator="," close=")">
             <foreach item="item" index="index" collection="projectIds" open="(" separator="," close=")">
                 #{item}
                 #{item}