| | |
| | | .map(CoalInfo::getId) |
| | | .collect(Collectors.toList()); |
| | | |
| | | // 组装查询条件:煤种ID在匹配的列表中 或 供应商名称匹配 |
| | | // 组装查询条件:煤种ID在匹配的列表中 |
| | | queryWrapper.and(w -> { |
| | | if (!matchedCoalIds.isEmpty()) { |
| | | w.in(PurchaseRegistration::getCoalId, matchedCoalIds).or(); |
| | |
| | | pendingInventory.setPurchaseId(purchaseRegistration.getId()); |
| | | pendingInventory.setCoalId(purchaseRegistration.getCoalId()); |
| | | pendingInventory.setInventoryQuantity(purchaseRegistration.getPurchaseQuantity()); |
| | | pendingInventory.setType(purchaseRegistration.getType()); |
| | | return pendingInventory; |
| | | } |
| | | |