| Line 380... |
Line 380... |
| 380 |
LOGGER.info("requestAttribute [userInfo={}]", userInfo);
|
380 |
LOGGER.info("requestAttribute [userInfo={}]", userInfo);
|
| 381 |
User user = userRepository.selectById(userInfo.getUserId());
|
381 |
User user = userRepository.selectById(userInfo.getUserId());
|
| 382 |
// = userAccountRepository.selectRetailerIdByUserId(user.getId());
|
382 |
// = userAccountRepository.selectRetailerIdByUserId(user.getId());
|
| 383 |
UserAccounts userAccounts = userAccountRepository.selectSaholicByUserId(user.getId());
|
383 |
UserAccounts userAccounts = userAccountRepository.selectSaholicByUserId(user.getId());
|
| 384 |
Retailer retailer = retailerRepository.selectById(Integer.parseInt(userAccounts.getAccount_key()));
|
384 |
Retailer retailer = retailerRepository.selectById(Integer.parseInt(userAccounts.getAccount_key()));
|
| - |
|
385 |
//TODO: Ashik fix it
|
| 385 |
if(!retailer.isFofo()){
|
386 |
/*if(!retailer.isFofo()){
|
| 386 |
throw new ProfitMandiBusinessException(ProfitMandiConstants.USER_ID, user.getId(), "USR_1013");
|
387 |
throw new ProfitMandiBusinessException(ProfitMandiConstants.USER_ID, user.getId(), "USR_1013");
|
| 387 |
}
|
388 |
}*/
|
| 388 |
boolean foundFofoStore = false;
|
389 |
boolean foundFofoStore = false;
|
| 389 |
try{
|
390 |
try{
|
| 390 |
fofoStoreRepository.selectByRetailerId(retailer.getId());
|
391 |
fofoStoreRepository.selectByRetailerId(retailer.getId());
|
| 391 |
foundFofoStore = true;
|
392 |
foundFofoStore = true;
|
| 392 |
}catch (ProfitMandiBusinessException profitMandiBusinessException) {
|
393 |
}catch (ProfitMandiBusinessException profitMandiBusinessException) {
|