Subversion Repositories SmartDukaan

Rev

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

Rev 31699 Rev 31700
Line 130... Line 130...
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
134
		//Lets allow demo
135
		brands.add("Demo");
135
		brands.add("Live Demo");
136
 
136
 
137
		Map<Integer, CustomRetailer> customRetailerMap = retailerService.getAllFofoRetailers();
137
		Map<Integer, CustomRetailer> customRetailerMap = retailerService.getAllFofoRetailers();
138
 
138
 
139
		Map<Integer, CustomRetailer> customRetailersMap = fofoIds.stream().map(x -> customRetailerMap.get(x))
139
		Map<Integer, CustomRetailer> customRetailersMap = fofoIds.stream().map(x -> customRetailerMap.get(x))
140
				.filter(x -> x != null).collect(Collectors.toList()).stream()
140
				.filter(x -> x != null).collect(Collectors.toList()).stream()