Subversion Repositories SmartDukaan

Rev

Rev 31624 | Rev 31641 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31624 Rev 31634
Line 225... Line 225...
225
		return availabilityItemMap;
225
		return availabilityItemMap;
226
 
226
 
227
	}
227
	}
228
 
228
 
229
	public Map<Integer, List<String>> getLabels() {
229
	public Map<Integer, List<String>> getLabels() {
230
		List<String> labels = Arrays.asList("partner-best-sellers", "partner-price-drop", "new-launches");
230
		List<String> labels = Arrays.asList("partner-best-sellers", "partner-price-drop", "new-launches",
-
 
231
				"upgrade-offer", "special-support");
231
 
232
 
232
		Map<Integer, String> webListing = webListingRepository.selectByUrls(labels).stream()
233
		Map<Integer, String> webListing = webListingRepository.selectByUrls(labels).stream()
233
				.collect(Collectors.toMap(x -> x.getId(), x -> x.getUrl()));
234
				.collect(Collectors.toMap(x -> x.getId(), x -> x.getUrl()));
234
 
235
 
235
		Map<Integer, List<WebProductListing>> webProductListingMap = webProductListingRepository
236
		Map<Integer, List<WebProductListing>> webProductListingMap = webProductListingRepository
Line 340... Line 341...
340
				}
341
				}
341
				if (featureMap.containsKey(item.getCatalogItemId())
342
				if (featureMap.containsKey(item.getCatalogItemId())
342
						&& featureMap.get(item.getCatalogItemId()) != null) {
343
						&& featureMap.get(item.getCatalogItemId()) != null) {
343
					catalogObj.put("feature", featureMap.get(item.getCatalogItemId()));
344
					catalogObj.put("feature", featureMap.get(item.getCatalogItemId()));
344
 
345
 
345
					
-
 
346
				}
346
				}
347
				
-
 
348
				catalogObj.put("categoryId",
-
 
349
						CATEGORY_MASTER.contains(item.getCategoryId()) ? item.getCategoryId() : 6);
-
 
350
 
347
 
-
 
348
				catalogObj.put("categoryId", CATEGORY_MASTER.contains(item.getCategoryId()) ? item.getCategoryId() : 6);
351
 
349
 
352
				if (item.getCategoryId() == 10006) {
350
				if (item.getCategoryId() == 10006) {
353
					catalogObj.put("categoryId", 3);
351
					catalogObj.put("categoryId", 3);
354
				}
352
				}
355
				catalogObj.put("subCategoryId", item.getCategoryId());
353
				catalogObj.put("subCategoryId", item.getCategoryId());