Subversion Repositories SmartDukaan

Rev

Rev 34901 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34901 Rev 35394
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
            }