Subversion Repositories SmartDukaan

Rev

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

Rev 28277 Rev 28283
Line 788... Line 788...
788
	public String getRetailerBrandslimit(HttpServletRequest request,
788
	public String getRetailerBrandslimit(HttpServletRequest request,
789
			@RequestParam(name = "brand", required = true, defaultValue = "0") String brand, Model model)
789
			@RequestParam(name = "brand", required = true, defaultValue = "0") String brand, Model model)
790
			throws Exception {
790
			throws Exception {
791
 
791
 
792
		Map<Integer, CustomRetailer> customRetailers = retailerService.getFofoRetailers(true);
792
		Map<Integer, CustomRetailer> customRetailers = retailerService.getFofoRetailers(true);
-
 
793
		List<RetailerBrandsLimit> retailerBrandsLimit = retailerBrandsLimitRepository.setAllLimitByBrands(brand);
-
 
794
		Map<Integer, RetailerBrandsLimit> retailerBrandsLimitMap = retailerBrandsLimit.stream()
-
 
795
				.collect(Collectors.toMap(x -> x.getPartnerId(), x -> x));
793
 
796
 
794
		model.addAttribute("customRetailers", customRetailers);
797
		model.addAttribute("customRetailers", customRetailers);
795
		model.addAttribute("brand", brand);
798
		model.addAttribute("brand", brand);
-
 
799
		model.addAttribute("retailerBrandsLimitMap", retailerBrandsLimitMap);
796
 
800
 
797
		BrandLimit brandLimit = brandLimitRepository.setLimitByBrands(brand);
801
		BrandLimit brandLimit = brandLimitRepository.setLimitByBrands(brand);
798
 
802
 
799
		model.addAttribute("brandLimit", brandLimit);
803
		model.addAttribute("brandLimit", brandLimit);
800
 
804