| Line 2533... |
Line 2533... |
| 2533 |
// Add the missing IDs to the original set
|
2533 |
// Add the missing IDs to the original set
|
| 2534 |
catalogIds.addAll(inTransitCatalogIds);
|
2534 |
catalogIds.addAll(inTransitCatalogIds);
|
| 2535 |
|
2535 |
|
| 2536 |
List<Integer> catalogsList = new ArrayList<>(catalogIds);
|
2536 |
List<Integer> catalogsList = new ArrayList<>(catalogIds);
|
| 2537 |
|
2537 |
|
| - |
|
2538 |
Map<Integer, TagListing> tagListingsMap = catalogsList.isEmpty()
|
| - |
|
2539 |
? Collections.emptyMap()
|
| 2538 |
Map<Integer, TagListing> tagListingsMap = tagListingRepository.selectAllByCatalogIds(catalogsList);
|
2540 |
: tagListingRepository.selectAllByCatalogIds(catalogsList);
|
| 2539 |
|
2541 |
|
| 2540 |
List<CatalogAgingModel> catalogAgingModels = ageingService.getCatalogsAgingByWarehouse(catalogIds, fofoStore.getWarehouseId());
|
2542 |
List<CatalogAgingModel> catalogAgingModels = ageingService.getCatalogsAgingByWarehouse(catalogIds, fofoStore.getWarehouseId());
|
| 2541 |
|
2543 |
|
| 2542 |
Map<Integer, CatalogAgingModel> catalogAgingModelMap = catalogAgingModels.stream().collect(Collectors.toMap(x -> x.getCatalogId(), x -> x));
|
2544 |
Map<Integer, CatalogAgingModel> catalogAgingModelMap = catalogAgingModels.stream().collect(Collectors.toMap(x -> x.getCatalogId(), x -> x));
|
| 2543 |
|
2545 |
|