| Line 39... |
Line 39... |
| 39 |
ProfitMandiConstants.TICKET_CATEGORY_BUSINESSINTELLIGENT, ProfitMandiConstants.TICKET_CATEGORY_STOCKS,
|
39 |
ProfitMandiConstants.TICKET_CATEGORY_BUSINESSINTELLIGENT, ProfitMandiConstants.TICKET_CATEGORY_STOCKS,
|
| 40 |
ProfitMandiConstants.TICKET_CATEGORY_TECHNOLOGY, ProfitMandiConstants.TICKET_CATEGORY_TRAINING);
|
40 |
ProfitMandiConstants.TICKET_CATEGORY_TECHNOLOGY, ProfitMandiConstants.TICKET_CATEGORY_TRAINING);
|
| 41 |
|
41 |
|
| 42 |
@Override
|
42 |
@Override
|
| 43 |
public Set<Integer> getAuthFofoIds(String email, boolean active) throws ProfitMandiBusinessException {
|
43 |
public Set<Integer> getAuthFofoIds(String email, boolean active) throws ProfitMandiBusinessException {
|
| 44 |
|
- |
|
| 45 |
|
- |
|
| 46 |
Map<String, Set<Integer>> storeGuyMap = csService.getAuthUserPartnerIdMappingByCategoryIds(categoryIds, active);
|
44 |
Map<String, Set<Integer>> storeGuyMap = csService.getAuthUserPartnerIdMappingByCategoryIds(categoryIds, active);
|
| 47 |
Set<Integer> authfofoIds = storeGuyMap.get(email);
|
45 |
Set<Integer> authfofoIds = storeGuyMap.get(email);
|
| 48 |
|
46 |
|
| 49 |
AuthUser authUser = authRepository.selectByEmailOrMobile(email);
|
47 |
AuthUser authUser = authRepository.selectByEmailOrMobile(email);
|
| 50 |
if (authfofoIds == null) {
|
48 |
if (authfofoIds == null) {
|
| Line 53... |
Line 51... |
| 53 |
.count() > 0) {
|
51 |
.count() > 0) {
|
| 54 |
authfofoIds = csService.getPositionCustomRetailerMap(positions1).values().stream().flatMap(x -> x.stream())
|
52 |
authfofoIds = csService.getPositionCustomRetailerMap(positions1).values().stream().flatMap(x -> x.stream())
|
| 55 |
.map(x -> x.getPartnerId()).collect(Collectors.toSet());
|
53 |
.map(x -> x.getPartnerId()).collect(Collectors.toSet());
|
| 56 |
}
|
54 |
}
|
| 57 |
}
|
55 |
}
|
| 58 |
|
- |
|
| 59 |
return authfofoIds;
|
56 |
return authfofoIds;
|
| 60 |
}
|
57 |
}
|
| 61 |
}
|
58 |
}
|