| | |
| | | } |
| | | matnrIds.addAll(list); |
| | | } |
| | | if (!param.getMatnrId().isEmpty()) { |
| | | if (!Objects.isNull(param.getMatnrId()) && !param.getMatnrId().isEmpty()) { |
| | | List<Matnr> matnrs = matnrService.list(new LambdaQueryWrapper<Matnr>() |
| | | .select(Matnr::getId, Matnr::getGroupId) |
| | | .in(Matnr::getId, param.getMatnrId())); |
| | |
| | | matnrIds.addAll(matnrs); |
| | | } |
| | | List<LocAreaMatRela> locAreaMatRelas = new ArrayList<>(); |
| | | if (!param.getTypeId().isEmpty()) { |
| | | if (!Objects.isNull(param.getTypeId()) && !param.getTypeId().isEmpty()) { |
| | | for (Long typeId : param.getTypeId()) { |
| | | List<LocTypeRela> list = locTypeRelaService.list(new LambdaQueryWrapper<LocTypeRela>() |
| | | .select(LocTypeRela::getLocId).eq(LocTypeRela::getTypeId, typeId)); |
| | |
| | | } |
| | | } |
| | | |
| | | if (!param.getLocId().isEmpty()) { |
| | | List<LocTypeRela> list = locTypeRelaService.list(new LambdaQueryWrapper<LocTypeRela>().in(LocTypeRela::getLocId, param.getTypeId()).select(LocTypeRela::getTypeId, LocTypeRela::getLocId)); |
| | | if (!Objects.isNull(param.getLocId()) && !param.getLocId().isEmpty()) { |
| | | List<LocTypeRela> list = locTypeRelaService.list(new LambdaQueryWrapper<LocTypeRela>().in(LocTypeRela::getLocId, param.getLocId()).select(LocTypeRela::getTypeId, LocTypeRela::getLocId)); |
| | | if (list.isEmpty()) { |
| | | throw new CoolException("数据错误:库位未绑定库位类型!!"); |
| | | } |