| 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)
|
- |
|
| 187 |
public ResponseEntity<?> getSdDirectLoan(HttpServletRequest request) throws ProfitMandiBusinessException {
|
186 |
public ResponseEntity<?> getSdDirectLoan(HttpServletRequest request) throws ProfitMandiBusinessException {
|
| 188 |
int userId = (int) request.getAttribute(ProfitMandiConstants.USER_ID);
|
187 |
int userId = (int) request.getAttribute(ProfitMandiConstants.USER_ID);
|
| 189 |
int retailerId = userAccountRepository.selectRetailerIdByUserId(userId);
|
188 |
int retailerId = userAccountRepository.selectRetailerIdByUserId(userId);
|
| 190 |
SDCreditResponseOut sdCreditResponseOut = sdCreditService.sdDirectService(retailerId);
|
189 |
SDCreditResponseOut sdCreditResponseOut = sdCreditService.sdDirectService(retailerId);
|
| 191 |
return responseSender.ok(sdCreditResponseOut);
|
190 |
return responseSender.ok(sdCreditResponseOut);
|