| Line 107... |
Line 107... |
| 107 |
if(bestSellerCatalogIds.size() < bestSellerCount)
|
107 |
if(bestSellerCatalogIds.size() < bestSellerCount)
|
| 108 |
bestSellerCount = bestSellerCatalogIds.size();
|
108 |
bestSellerCount = bestSellerCatalogIds.size();
|
| 109 |
|
109 |
|
| 110 |
//Get top 12 latest arrivals b'coz 4 of them may overlap with best deals
|
110 |
//Get top 12 latest arrivals b'coz 4 of them may overlap with best deals
|
| 111 |
//while another 4 may overlap with best sellers.
|
111 |
//while another 4 may overlap with best sellers.
|
| - |
|
112 |
List<Long> latestArrivalCategories = new ArrayList<Long>();
|
| - |
|
113 |
latestArrivalCategories.add(10002L);
|
| - |
|
114 |
latestArrivalCategories.add(10003L);
|
| 112 |
latestArrivalCatalogIds = client.getLatestArrivalsCatalogIds(0, 12, null, 10003);
|
115 |
latestArrivalCatalogIds = client.getLatestArrivalsCatalogIds(0, 12, null, latestArrivalCategories);
|
| 113 |
latestArrivalCatalogIds.removeAll(bestDealCatalogIds);
|
116 |
latestArrivalCatalogIds.removeAll(bestDealCatalogIds);
|
| 114 |
latestArrivalCatalogIds.removeAll(bestSellerCatalogIds.subList(0, bestSellerCount)); //We're only considering the first 4 best sellers for removal.
|
117 |
latestArrivalCatalogIds.removeAll(bestSellerCatalogIds.subList(0, bestSellerCount)); //We're only considering the first 4 best sellers for removal.
|
| 115 |
if(latestArrivalCatalogIds.size() < latestArrivalCount)
|
118 |
if(latestArrivalCatalogIds.size() < latestArrivalCount)
|
| 116 |
latestArrivalCount = latestArrivalCatalogIds.size();
|
119 |
latestArrivalCount = latestArrivalCatalogIds.size();
|
| 117 |
} catch (InventoryServiceException e) {
|
120 |
} catch (InventoryServiceException e) {
|