Subversion Repositories SmartDukaan

Rev

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

Rev 25683 Rev 25726
Line 139... Line 139...
139
	private Gson gson;
139
	private Gson gson;
140
 
140
 
141
	private static final Logger LOGGER = LogManager.getLogger(DashboardController.class);
141
	private static final Logger LOGGER = LogManager.getLogger(DashboardController.class);
142
 
142
 
143
	@RequestMapping(value = "/12dashboard34", method = RequestMethod.GET)
143
	@RequestMapping(value = "/12dashboard34", method = RequestMethod.GET)
144
	public String dashboard1(HttpServletRequest request, Model model) throws Exception {
144
	public String dashboard1(HttpServletRequest request, Model model, @RequestParam int fofoId) throws Exception {
145
		LOGGER.info("In Dashboard1");
-
 
146
		LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
-
 
147
		boolean isAdmin = roleManager.isAdmin(loginDetails.getRoleIds());
-
 
148
		model.addAttribute("isAdmin", isAdmin);
-
 
149
		if (!isAdmin) {
-
 
150
			// model.addAttribute("brandStockPrices",
-
 
151
			// this.getBrandStockPrices(loginDetails.getFofoId()));
-
 
152
			model.addAttribute("salesMap", this.getSales(loginDetails.getFofoId()));
-
 
153
			model.addAttribute("investments", this.getInvestments(loginDetails.getFofoId()));
-
 
154
			return "dashboard1";
-
 
155
		}
-
 
156
		return "dashboard1";
145
		return "dashboard1";
157
	}
146
	}
158
 
147
 
159
	private Map<String, Object> getInvestments(int fofoId) throws Exception {
148
	private Map<String, Object> getInvestments(int fofoId) throws Exception {
160
		Map<String, Object> investments = new LinkedHashMap<>();
149
		Map<String, Object> investments = new LinkedHashMap<>();