Subversion Repositories SmartDukaan

Rev

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

Rev 27366 Rev 27368
Line 42... Line 42...
42
	
42
	
43
	@RequestMapping(value = "/map", method = RequestMethod.GET)
43
	@RequestMapping(value = "/map", method = RequestMethod.GET)
44
	public String getByPin(HttpServletRequest request, @RequestParam String email, Model model) throws Exception {
44
	public String getByPin(HttpServletRequest request, @RequestParam String email, Model model) throws Exception {
45
		User dtrUser = userRepository.selectByEmailId(email);
45
		User dtrUser = userRepository.selectByEmailId(email);
46
		List<GpsLocation> locations = gpsLocationRepository.selectAllByUserIdAndDate(dtrUser.getId(), null);
46
		List<GpsLocation> locations = gpsLocationRepository.selectAllByUserIdAndDate(dtrUser.getId(), null);
-
 
47
		LOGGER.info("locations {}", locations);
47
		model.addAttribute("locations", locations);
48
		model.addAttribute("locations", locations);
48
		return "map-index";
49
		return "map-index";
49
	}
50
	}
50
 
51
 
51
}
52
}