luobang 2 年之前
父節點
當前提交
38495366dd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/resources/com/steerinfo/dil/mapper/QmsQueueResultMapper.xml

+ 1 - 1
src/main/resources/com/steerinfo/dil/mapper/QmsQueueResultMapper.xml

@@ -918,7 +918,7 @@
         <if test="capacityNumber != null">
         <if test="capacityNumber != null">
             and instr(RC.CAPACITY_NUMBER, #{capacityNumber}) > 0
             and instr(RC.CAPACITY_NUMBER, #{capacityNumber}) > 0
         </if>
         </if>
-        <if test="materialList != null">
+        <if test="materialList != null and materialList.size > 0">
             and RM.MATERIAL_ID in
             and RM.MATERIAL_ID in
             <foreach collection="materialList" item="item" open="(" separator="," close=")">
             <foreach collection="materialList" item="item" open="(" separator="," close=")">
                 ${item}
                 ${item}