浏览代码

厂外库实时库存查询优化

xiaosonghong 6 月之前
父节点
当前提交
73d817eb24
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/main/resources/com/steerinfo/dil/mapper/OyeRealtimeInventoryMapper.xml

+ 3 - 0
src/main/resources/com/steerinfo/dil/mapper/OyeRealtimeInventoryMapper.xml

@@ -738,6 +738,9 @@
           ORI.SALE_AREA like '%${item}%'
         </foreach>
       </if>
+      <if test="isExcludeZero != null and isExcludeZero == true">
+         AND NVL(ORI.MATERIAL_NUMBER, 0) > 0
+      </if>
     </where>
     ORDER BY RC.CONSIGNEE_COMPANY_NAME desc,ORI.SALE_AREA desc
   </select>