排除临时库位机制

This commit is contained in:
刘名喜 2024-12-18 15:51:50 +08:00
parent 7d69b2eafc
commit f769bc17be

View File

@ -169,6 +169,8 @@ public class WmStorageLocationServiceImpl implements IWmStorageLocationService {
List<WmStorageArea> wmStorageAreaList = this.wmStorageAreaMapper.selectWmStorageAreaList(wmStorageAreaQuery).stream() List<WmStorageArea> wmStorageAreaList = this.wmStorageAreaMapper.selectWmStorageAreaList(wmStorageAreaQuery).stream()
// 过滤掉全部存在物品的库位 // 过滤掉全部存在物品的库位
.filter(it -> !selectNotEmptyAreaCodeList.contains(it.getAreaCode())) .filter(it -> !selectNotEmptyAreaCodeList.contains(it.getAreaCode()))
// 过滤掉临时库位
.filter(it -> !it.getAreaCode().equals("TEMP"))
.collect(Collectors.toList()); .collect(Collectors.toList());
if (wmStorageAreaList.isEmpty()) throw new RuntimeException("自动获取库位失败,无可用库位"); if (wmStorageAreaList.isEmpty()) throw new RuntimeException("自动获取库位失败,无可用库位");