refactor: 料箱字段类型修改
This commit is contained in:
parent
8987386691
commit
76e571359f
@ -164,7 +164,7 @@ public class WmStorageLocationServiceImpl implements IWmStorageLocationService {
|
|||||||
if (wmStorageLocationByCode == null) throw new RuntimeException("自动获取库位失败,该库区不存在");
|
if (wmStorageLocationByCode == null) throw new RuntimeException("自动获取库位失败,该库区不存在");
|
||||||
|
|
||||||
// 获取料箱中已经使用的库位编码
|
// 获取料箱中已经使用的库位编码
|
||||||
List<Long> selectNotEmptyAreaIdList = this.ucmCtBaseMapper.selectNotEmptyAreaIdList();
|
List<String> selectNotEmptyAreaIdList = this.ucmCtBaseMapper.selectNotEmptyAreaIdList();
|
||||||
|
|
||||||
// 获取库位列表
|
// 获取库位列表
|
||||||
WmStorageArea wmStorageAreaQuery = new WmStorageArea();
|
WmStorageArea wmStorageAreaQuery = new WmStorageArea();
|
||||||
@ -172,7 +172,7 @@ public class WmStorageLocationServiceImpl implements IWmStorageLocationService {
|
|||||||
wmStorageAreaQuery.setAttr3(isBig ? 1L : 0L);
|
wmStorageAreaQuery.setAttr3(isBig ? 1L : 0L);
|
||||||
List<WmStorageArea> wmStorageAreaList = this.wmStorageAreaMapper.selectWmStorageAreaList(wmStorageAreaQuery).stream()
|
List<WmStorageArea> 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"))
|
.filter(it -> !it.getAreaCode().equals("TEMP"))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
Loading…
Reference in New Issue
Block a user