Subversion Repositories SmartDukaan

Rev

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

Rev 22037 Rev 22880
Line 27... Line 27...
27
	
27
	
28
	@Autowired
28
	@Autowired
29
	PostOfficeRepository postOfficeRepository;
29
	PostOfficeRepository postOfficeRepository;
30
	
30
	
31
	@RequestMapping(value = ProfitMandiConstants.URL_POST_OFFICE, method=RequestMethod.GET)
31
	@RequestMapping(value = ProfitMandiConstants.URL_POST_OFFICE, method=RequestMethod.GET)
32
	public ResponseEntity<?> getByPin(HttpServletRequest request, @RequestParam(name = "pinCode") long pinCode){
32
	public ResponseEntity<?> getByPin(HttpServletRequest request, @RequestParam(name = "pinCode") int pinCode){
33
		LOGGER.info("requested url : "+request.getRequestURL().toString());
33
		LOGGER.info("requested url : "+request.getRequestURL().toString());
34
		return responseSender.ok(postOfficeRepository.selectByPinCode(pinCode));
34
		return responseSender.ok(postOfficeRepository.selectByPinCode(pinCode));
35
		
35
		
36
	}
36
	}
37
}
37
}
38
38