Subversion Repositories SmartDukaan

Rev

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

Rev 35967 Rev 36706
Line 417... Line 417...
417
	public ResponseEntity<?> getItemHidAllocation(HttpServletRequest request) throws
417
	public ResponseEntity<?> getItemHidAllocation(HttpServletRequest request) throws
418
			Exception {
418
			Exception {
419
		List<HidAllocationModel> hidAllocationModels = new ArrayList<>();
419
		List<HidAllocationModel> hidAllocationModels = new ArrayList<>();
420
 
420
 
421
		int userId = (int) request.getAttribute(ProfitMandiConstants.USER_ID);
421
		int userId = (int) request.getAttribute(ProfitMandiConstants.USER_ID);
-
 
422
		try {
422
		int retailerId = userAccountRepository.selectRetailerIdByUserId(userId);
423
			int retailerId = userAccountRepository.selectRetailerIdByUserId(userId);
423
 
-
 
424
		hidAllocationModels = fofoOpeningStockRepository.getPartnerHidAllocation(retailerId);
424
			hidAllocationModels = fofoOpeningStockRepository.getPartnerHidAllocation(retailerId);
-
 
425
		} catch (ProfitMandiBusinessException e) {
-
 
426
			LOGGER.warn("No saholic account found for userId={}, returning empty list", userId);
-
 
427
			return responseSender.ok(hidAllocationModels);
-
 
428
		}
425
 
429
 
426
		return responseSender.ok(hidAllocationModels);
430
		return responseSender.ok(hidAllocationModels);
427
	}
431
	}
428
 
432
 
429
 
433