| | |
| | | Set<Long> stockIds = stockItems.stream().map(StockItem::getStockId).collect(Collectors.toSet()); |
| | | List<Stock> stocks = stockService.listByIds(stockIds); |
| | | //过滤拣货入库明细,避免上报 |
| | | List<Stock> stockList = stocks.stream().filter(stock -> stock.getType().equals(OrderType.ORDER_OUT.type)).collect(Collectors.toList()); |
| | | List<Stock> stockList = stocks.stream().filter(stock -> stock.getType().equals(OrderType.ORDER_OUT.type) && !Objects.isNull(stock.getSourceCode())).collect(Collectors.toList()); |
| | | List<Long> list = stockList.stream().map(Stock::getId).collect(Collectors.toList()); |
| | | List<StockItem> stockItems1 = stockItemService.list(new LambdaQueryWrapper<StockItem>().in(StockItem::getStockId, list)); |
| | | String finalNickName = nickName; |