yumeng 4 years ago
parent
commit
a61cd45f17

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

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