| | |
| | | return locs;
|
| | | }
|
| | |
|
| | | // 重写ctu库获取库位
|
| | | public Loc getGlobalEmptyLocToCtu(Integer locTypeHeight) {
|
| | | LocTypeHeightType locTypeHeightType = LocTypeHeightType.get(locTypeHeight);
|
| | | if (locTypeHeightType == null) {
|
| | | throw new CoolException("库位高度类型异常");
|
| | | }
|
| | | //获取库位高度
|
| | | LocType locType = locTypeService.getOne(new LambdaQueryWrapper<LocType>().eq(LocType::getFlag, locTypeHeightType.flag));
|
| | | //符合库位高度的库位集合
|
| | | List<Long> locIdList = locTypeBindService.getLocIdListByType(locType);
|
| | |
|
| | | LambdaQueryWrapper<Loc> queryWrapper = new LambdaQueryWrapper<>();
|
| | | queryWrapper.in(Loc::getId, locIdList);
|
| | | queryWrapper.eq(Loc::getLocStsId, LocStsType.O.val());
|
| | | queryWrapper.le(Loc::getRow1,26);
|
| | | queryWrapper.orderByAsc(Loc::getLev1).orderByDesc(Loc::getBay1).orderByAsc(Loc::getRow1);
|
| | | queryWrapper.last("limit 1");
|
| | |
|
| | | return locService.getOne(queryWrapper);
|
| | | }
|
| | |
|
| | | }
|