Subversion Repositories SmartDukaan

Rev

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

Rev 31299 Rev 31300
Line 2270... Line 2270...
2270
		Map<Integer, Map<YearMonth, Double>> partnerMonthPurchaseMap = orders.stream()
2270
		Map<Integer, Map<YearMonth, Double>> partnerMonthPurchaseMap = orders.stream()
2271
				.collect(Collectors.groupingBy(x -> x.getRetailerId(),
2271
				.collect(Collectors.groupingBy(x -> x.getRetailerId(),
2272
						Collectors.groupingBy(x -> YearMonth.from(x.getCreateTimestamp()),
2272
						Collectors.groupingBy(x -> YearMonth.from(x.getCreateTimestamp()),
2273
								Collectors.summingDouble(x -> x.getTotalAmount()))));
2273
								Collectors.summingDouble(x -> x.getTotalAmount()))));
2274
 
2274
 
2275
		LOGGER.info("partnerMonthPurchaseMap" + partnerMonthPurchaseMap);
2275
		LOGGER.info("orders" + orders);
2276
 
2276
 
2277
		Map<Integer, CustomRetailer> customRetailerMap = retailerService.getFofoRetailerUserId(fofoIds);
2277
		Map<Integer, CustomRetailer> customRetailerMap = retailerService.getFofoRetailerUserId(fofoIds);
2278
 
2278
 
2279
		model.addAttribute("customRetailerMap", customRetailerMap);
2279
		model.addAttribute("customRetailerMap", customRetailerMap);
2280
 
2280