| | |
| | | List<StockItem> stockItems = stockItemService.list(new LambdaQueryWrapper<StockItem>() |
| | | .eq(StockItem::getFieldsIndex, orderItem.getFieldsIndex())); |
| | | //获取库存中订单库位 |
| | | Set<Long> longSet = stockItems.stream().map(StockItem::getStockId).collect(Collectors.toSet()); |
| | | List<Long> longSet = stockItems.stream().map(StockItem::getStockId).collect(Collectors.toList()); |
| | | //获取库存库位信息 |
| | | Stock stocks = stockService.getOne(new LambdaQueryWrapper<Stock>() |
| | | .in(Stock::getId, longSet) |
| | |
| | | |
| | | try { |
| | | //休眠3秒 |
| | | Thread.sleep(3000); |
| | | Thread.sleep(300); |
| | | } catch (InterruptedException e) { |
| | | throw new RuntimeException(e); |
| | | } |