From 76e571359fbc04687d5bcb3c2527dd0612164559 Mon Sep 17 00:00:00 2001 From: Kelvin Date: Thu, 19 Dec 2024 17:02:30 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=96=99=E7=AE=B1=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E7=B1=BB=E5=9E=8B=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ktg/mes/wm/service/impl/WmStorageLocationServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 642f462..65af41b 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 @@ -164,7 +164,7 @@ public class WmStorageLocationServiceImpl implements IWmStorageLocationService { if (wmStorageLocationByCode == null) throw new RuntimeException("自动获取库位失败,该库区不存在"); // 获取料箱中已经使用的库位编码 - List selectNotEmptyAreaIdList = this.ucmCtBaseMapper.selectNotEmptyAreaIdList(); + List selectNotEmptyAreaIdList = this.ucmCtBaseMapper.selectNotEmptyAreaIdList(); // 获取库位列表 WmStorageArea wmStorageAreaQuery = new WmStorageArea(); @@ -172,7 +172,7 @@ public class WmStorageLocationServiceImpl implements IWmStorageLocationService { wmStorageAreaQuery.setAttr3(isBig ? 1L : 0L); List wmStorageAreaList = this.wmStorageAreaMapper.selectWmStorageAreaList(wmStorageAreaQuery).stream() // 过滤掉全部已经存在料箱的库位 - .filter(it -> !selectNotEmptyAreaIdList.contains(it.getAreaId())) + .filter(it -> !selectNotEmptyAreaIdList.contains(it.getAreaId().toString())) // 过滤掉临时库位 .filter(it -> !it.getAreaCode().equals("TEMP")) .collect(Collectors.toList());