Subversion Repositories SmartDukaan

Rev

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

Rev 21692 Rev 21698
Line 372... Line 372...
372
	
372
	
373
	@RequestMapping(value = ProfitMandiConstants.URL_RETAILER_REGISTERED_ADDRESS, method=RequestMethod.GET)
373
	@RequestMapping(value = ProfitMandiConstants.URL_RETAILER_REGISTERED_ADDRESS, method=RequestMethod.GET)
374
	public ResponseEntity<?> getRegisteredAddressById(HttpServletRequest request, @RequestParam(name = "retailerId") int retailerId){
374
	public ResponseEntity<?> getRegisteredAddressById(HttpServletRequest request, @RequestParam(name = "retailerId") int retailerId){
375
		LOGGER.info("requested url : "+request.getRequestURL().toString());
375
		LOGGER.info("requested url : "+request.getRequestURL().toString());
376
		try {
376
		try {
377
			return responseSender.ok(retailerRegisteredAddressRepository.selectByRetailerId(retailerId));
377
			return responseSender.ok(retailerRegisteredAddressRepository.selectAddressIdByRetailerId(retailerId));
378
		}catch (ProfitMandiBusinessException profitMandiBusinessException) {
378
		}catch (ProfitMandiBusinessException profitMandiBusinessException) {
379
			LOGGER.error("ProfitMandi error: ",  profitMandiBusinessException);
379
			LOGGER.error("ProfitMandi error: ",  profitMandiBusinessException);
380
			return responseSender.badRequest(profitMandiBusinessException);
380
			return responseSender.badRequest(profitMandiBusinessException);
381
		}
381
		}
382
	}
382
	}