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());