| Line 421... |
Line 421... |
| 421 |
int userId = (int) request.getAttribute(ProfitMandiConstants.USER_ID);
|
421 |
int userId = (int) request.getAttribute(ProfitMandiConstants.USER_ID);
|
| 422 |
try {
|
422 |
try {
|
| 423 |
int retailerId = userAccountRepository.selectRetailerIdByUserId(userId);
|
423 |
int retailerId = userAccountRepository.selectRetailerIdByUserId(userId);
|
| 424 |
hidAllocationModels = fofoOpeningStockRepository.getPartnerHidAllocation(retailerId);
|
424 |
hidAllocationModels = fofoOpeningStockRepository.getPartnerHidAllocation(retailerId);
|
| 425 |
} catch (ProfitMandiBusinessException e) {
|
425 |
} catch (ProfitMandiBusinessException e) {
|
| 426 |
LOGGER.warn("No saholic account found for userId={}, returning empty list", userId);
|
426 |
logger.warn("No saholic account found for userId={}, returning empty list", userId);
|
| 427 |
return responseSender.ok(hidAllocationModels);
|
427 |
return responseSender.ok(hidAllocationModels);
|
| 428 |
}
|
428 |
}
|
| 429 |
|
429 |
|
| 430 |
return responseSender.ok(hidAllocationModels);
|
430 |
return responseSender.ok(hidAllocationModels);
|
| 431 |
}
|
431 |
}
|