From f769bc17be85640a005612f8f3934e4b9ee74d4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=90=8D=E5=96=9C?= Date: Wed, 18 Dec 2024 15:51:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E9=99=A4=E4=B8=B4=E6=97=B6=E5=BA=93?= =?UTF-8?q?=E4=BD=8D=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ktg/mes/wm/service/impl/WmStorageLocationServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmStorageLocationServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmStorageLocationServiceImpl.java index 5b3ebb5..616fe40 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmStorageLocationServiceImpl.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/WmStorageLocationServiceImpl.java @@ -169,6 +169,8 @@ public class WmStorageLocationServiceImpl implements IWmStorageLocationService { List wmStorageAreaList = this.wmStorageAreaMapper.selectWmStorageAreaList(wmStorageAreaQuery).stream() // 过滤掉全部存在物品的库位 .filter(it -> !selectNotEmptyAreaCodeList.contains(it.getAreaCode())) + // 过滤掉临时库位 + .filter(it -> !it.getAreaCode().equals("TEMP")) .collect(Collectors.toList()); if (wmStorageAreaList.isEmpty()) throw new RuntimeException("自动获取库位失败,无可用库位");