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("自动获取库位失败,无可用库位");