| Line 193... |
Line 193... |
| 193 |
} catch (Exception e) {
|
193 |
} catch (Exception e) {
|
| 194 |
Set<Integer> authUserPartnerSet = csService.getAuthUserPartnerIdMapping().get(authUser.getEmailId());
|
194 |
Set<Integer> authUserPartnerSet = csService.getAuthUserPartnerIdMapping().get(authUser.getEmailId());
|
| 195 |
if (authUserPartnerSet != null && authUserPartnerSet.size() > 0) {
|
195 |
if (authUserPartnerSet != null && authUserPartnerSet.size() > 0) {
|
| 196 |
retailerId = authUserPartnerSet.stream().findFirst().get();
|
196 |
retailerId = authUserPartnerSet.stream().findFirst().get();
|
| 197 |
FofoStore fs = fofoStoreRepository.selectByRetailerId(retailerId);
|
197 |
FofoStore fs = fofoStoreRepository.selectByRetailerId(retailerId);
|
| 198 |
retailerId = ProfitMandiConstants.WAREHOUSE_NSSPL_PARTNER_MAP.get(fs.getWarehouseId());
|
198 |
retailerId = partnerTypeChangeService.getBestPartner(fs.getWarehouseId());
|
| 199 |
} else {
|
199 |
} else {
|
| 200 |
com.spice.profitmandi.dao.entity.user.User user = userUserRepository
|
200 |
com.spice.profitmandi.dao.entity.user.User user = userUserRepository
|
| 201 |
.selectByEmailId(Utils.SYSTEM_PARTNER);
|
201 |
.selectByEmailId(Utils.SYSTEM_PARTNER);
|
| 202 |
retailerId = user.getId();
|
202 |
retailerId = user.getId();
|
| 203 |
}
|
203 |
}
|