Subversion Repositories SmartDukaan

Rev

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

Rev 31280 Rev 31699
Line 129... Line 129...
129
				.collect(Collectors.toList());
129
				.collect(Collectors.toList());
130
 
130
 
131
		Set<String> brands = mongoClient.getMongoBrands(loginDetails.getFofoId(), null, 3).stream()
131
		Set<String> brands = mongoClient.getMongoBrands(loginDetails.getFofoId(), null, 3).stream()
132
				.map(x -> (String) x.get("name")).collect(Collectors.toSet());
132
				.map(x -> (String) x.get("name")).collect(Collectors.toSet());
133
		brands.addAll(itemRepository.selectAllBrands(ProfitMandiConstants.LED_CATEGORY_ID));
133
		brands.addAll(itemRepository.selectAllBrands(ProfitMandiConstants.LED_CATEGORY_ID));
-
 
134
		//Lets allow demo
-
 
135
		brands.add("Demo");
134
 
136
 
135
		Map<Integer, CustomRetailer> customRetailerMap = retailerService.getAllFofoRetailers();
137
		Map<Integer, CustomRetailer> customRetailerMap = retailerService.getAllFofoRetailers();
136
 
138
 
137
		Map<Integer, CustomRetailer> customRetailersMap = fofoIds.stream().map(x -> customRetailerMap.get(x))
139
		Map<Integer, CustomRetailer> customRetailersMap = fofoIds.stream().map(x -> customRetailerMap.get(x))
138
				.filter(x -> x != null).collect(Collectors.toList()).stream()
140
				.filter(x -> x != null).collect(Collectors.toList()).stream()