Subversion Repositories SmartDukaan

Rev

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

Rev 26927 Rev 26963
Line 684... Line 684...
684
 
684
 
685
			}
685
			}
686
			model.addAttribute("authIdAndallValues", authIdAndallValues);
686
			model.addAttribute("authIdAndallValues", authIdAndallValues);
687
			model.addAttribute("authIdAndAuthUserMap", authIdAndAuthUserMap);
687
			model.addAttribute("authIdAndAuthUserMap", authIdAndAuthUserMap);
688
 
688
 
689
			LOGGER.info("authIdAndallValues1" + authIdAndallValues);
-
 
690
		} catch (ProfitMandiBusinessException e) {
689
		} catch (ProfitMandiBusinessException e) {
691
		}
690
		}
692
		List<Menu> menuList = (menus != null) ? this.prepareMenu(menus) : new ArrayList<>();
691
		List<Menu> menuList = (menus != null) ? this.prepareMenu(menus) : new ArrayList<>();
693
		LOGGER.info("menu" + menuList);
692
		LOGGER.info("menu" + menuList);
694
		model.addAttribute("menu", menuList);
693
		model.addAttribute("menu", menuList);
Line 785... Line 784...
785
	@RequestMapping(value = "/getAuthUserPartners", method = RequestMethod.GET)
784
	@RequestMapping(value = "/getAuthUserPartners", method = RequestMethod.GET)
786
	public String AuthUserPartnersDetail(HttpServletRequest request, Model model, @RequestParam int authId)
785
	public String AuthUserPartnersDetail(HttpServletRequest request, Model model, @RequestParam int authId)
787
			throws Exception {
786
			throws Exception {
788
 
787
 
789
		Map<Integer, List<Integer>> pp = csService.getAuthUserIdPartnerIdMapping();
788
		Map<Integer, List<Integer>> pp = csService.getAuthUserIdPartnerIdMapping();
790
		Map<Integer, CustomRetailer> fofoIdAndPartnerMap = retailerService.getFofoRetailers();
789
		Map<Integer, CustomRetailer> fofoIdAndPartnerMap = retailerService.getFofoRetailers(false);
791
 
790
 
792
		Map<Integer, PartnerDetailModel> fofoIdAndallValues = partnerStatsService.getAllPartnerStats();
791
		Map<Integer, PartnerDetailModel> fofoIdAndallValues = partnerStatsService.getAllPartnerStats();
793
		if (authId != 0) {
792
		if (authId != 0) {
794
			List<Integer> fofoIds = pp.get(authId);
793
			List<Integer> fofoIds = pp.get(authId);
795
			fofoIdAndallValues = fofoIdAndallValues.entrySet().stream().filter(x -> fofoIds.contains(x.getKey()))
794
			fofoIdAndallValues = fofoIdAndallValues.entrySet().stream().filter(x -> fofoIds.contains(x.getKey()))