Subversion Repositories SmartDukaan

Rev

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

Rev 26267 Rev 26309
Line 328... Line 328...
328
	}
328
	}
329
 
329
 
330
	private List<BrandStockPrice> getBrandStockPrices(int fofoId) throws Exception {
330
	private List<BrandStockPrice> getBrandStockPrices(int fofoId) throws Exception {
331
		Map<String, BrandStockPrice> brandStockPricesMap = inventoryService.getBrandWiseStockValue(fofoId);
331
		Map<String, BrandStockPrice> brandStockPricesMap = inventoryService.getBrandWiseStockValue(fofoId);
332
 
332
 
333
		List<DBObject> mobileBrands = mongoClient.getMongoBrands(fofoId, "", 3);
333
		List<DBObject> mobileBrands = mongoClient.getAllBrandsToDisplay(3);
334
		List<BrandStockPrice> brandStockPrices = new ArrayList<>();
334
		List<BrandStockPrice> brandStockPrices = new ArrayList<>();
335
 
335
 
336
		mobileBrands.stream().forEach(x -> {
336
		mobileBrands.stream().forEach(x -> {
337
			String brand = (String) x.get("name");
337
			String brand = (String) x.get("name");
338
			if (brandStockPricesMap.containsKey(brand)) {
338
			if (brandStockPricesMap.containsKey(brand)) {