Subversion Repositories SmartDukaan

Rev

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

Rev 35059 Rev 35435
Line 181... Line 181...
181
			throw new ProfitMandiBusinessException("Provider", "Empty", "Provider can't be empty");
181
			throw new ProfitMandiBusinessException("Provider", "Empty", "Provider can't be empty");
182
		}
182
		}
183
	}
183
	}
184
 
184
 
185
	@RequestMapping(value = "payment/gateway/sddirect/summary", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
185
	@RequestMapping(value = "payment/gateway/sddirect/summary", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
-
 
186
	@Transactional(readOnly = true)
186
	public ResponseEntity<?> getSdDirectLoan(HttpServletRequest request) throws ProfitMandiBusinessException {
187
	public ResponseEntity<?> getSdDirectLoan(HttpServletRequest request) throws ProfitMandiBusinessException {
187
		int userId = (int) request.getAttribute(ProfitMandiConstants.USER_ID);
188
		int userId = (int) request.getAttribute(ProfitMandiConstants.USER_ID);
188
		int retailerId = userAccountRepository.selectRetailerIdByUserId(userId);
189
		int retailerId = userAccountRepository.selectRetailerIdByUserId(userId);
189
		SDCreditResponseOut sdCreditResponseOut = sdCreditService.sdDirectService(retailerId);
190
		SDCreditResponseOut sdCreditResponseOut = sdCreditService.sdDirectService(retailerId);
190
		return responseSender.ok(sdCreditResponseOut);
191
		return responseSender.ok(sdCreditResponseOut);