| Line 44... |
Line 44... |
| 44 |
Map<String, Set<Integer>> storeGuyMap = csService.getAuthUserPartnerIdMappingByCategoryIds(categoryIds, active);
|
44 |
Map<String, Set<Integer>> storeGuyMap = csService.getAuthUserPartnerIdMappingByCategoryIds(categoryIds, active);
|
| 45 |
Set<Integer> authfofoIds = storeGuyMap.get(email);
|
45 |
Set<Integer> authfofoIds = storeGuyMap.get(email);
|
| 46 |
|
46 |
|
| 47 |
AuthUser authUser = authRepository.selectByEmailOrMobile(email);
|
47 |
AuthUser authUser = authRepository.selectByEmailOrMobile(email);
|
| 48 |
if (authfofoIds == null) {
|
48 |
if (authfofoIds == null) {
|
| 49 |
List<Position> positions1 = positionRepository.selectAll(authUser.getId());
|
49 |
List<Position> positions1 = positionRepository.selectAllByAuthUserId(authUser.getId());
|
| 50 |
if (positions1.stream().filter(x -> x.getCategoryId() == ProfitMandiConstants.TICKET_CATEGORY_MASTER)
|
50 |
if (positions1.stream().filter(x -> x.getCategoryId() == ProfitMandiConstants.TICKET_CATEGORY_MASTER)
|
| 51 |
.count() > 0) {
|
51 |
.count() > 0) {
|
| 52 |
authfofoIds = csService.getPositionCustomRetailerMap(positions1).values().stream().flatMap(x -> x.stream())
|
52 |
authfofoIds = csService.getPositionCustomRetailerMap(positions1).values().stream().flatMap(x -> x.stream())
|
| 53 |
.map(x -> x.getPartnerId()).collect(Collectors.toSet());
|
53 |
.map(x -> x.getPartnerId()).collect(Collectors.toSet());
|
| 54 |
}
|
54 |
}
|