| Line 512... |
Line 512... |
| 512 |
|
512 |
|
| 513 |
if (inventoryItems.size() == 0) return;
|
513 |
if (inventoryItems.size() == 0) return;
|
| 514 |
|
514 |
|
| 515 |
Map<Integer, List<InventoryItem>> catalogInventoryItemMap = inventoryItems.stream().collect(Collectors.groupingBy(x -> x.getItem().getCatalogItemId()));
|
515 |
Map<Integer, List<InventoryItem>> catalogInventoryItemMap = inventoryItems.stream().collect(Collectors.groupingBy(x -> x.getItem().getCatalogItemId()));
|
| 516 |
Map<CatalogSummaryModel, List<SchemeSummaryModel>> catalogSchemeSummaryMap = tagListingRepository.getModelSchemesByCatalogIdsAndType(retailerId,
|
516 |
Map<CatalogSummaryModel, List<SchemeSummaryModel>> catalogSchemeSummaryMap = tagListingRepository.getModelSchemesByCatalogIdsAndType(retailerId,
|
| 517 |
partnerType, new ArrayList<>(catalogInventoryItemMap.keySet()), purchase.getCreateTimestamp());
|
517 |
partnerType, new ArrayList<>(catalogInventoryItemMap.keySet()), billingDate);
|
| 518 |
|
518 |
|
| 519 |
|
519 |
|
| 520 |
int itemsCount = 0;
|
520 |
int itemsCount = 0;
|
| 521 |
float totalCashback = 0;
|
521 |
float totalCashback = 0;
|
| 522 |
for (Map.Entry<CatalogSummaryModel, List<SchemeSummaryModel>> catalogSummaryModelListEntry : catalogSchemeSummaryMap.entrySet()) {
|
522 |
for (Map.Entry<CatalogSummaryModel, List<SchemeSummaryModel>> catalogSummaryModelListEntry : catalogSchemeSummaryMap.entrySet()) {
|