Просмотр исходного кода

厂外库实时库存查询优化

xiaosonghong 6 месяцев назад
Родитель
Сommit
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}%'
           ORI.SALE_AREA like '%${item}%'
         </foreach>
         </foreach>
       </if>
       </if>
+      <if test="isExcludeZero != null and isExcludeZero == true">
+         AND NVL(ORI.MATERIAL_NUMBER, 0) > 0
+      </if>
     </where>
     </where>
     ORDER BY RC.CONSIGNEE_COMPANY_NAME desc,ORI.SALE_AREA desc
     ORDER BY RC.CONSIGNEE_COMPANY_NAME desc,ORI.SALE_AREA desc
   </select>
   </select>