Subversion Repositories SmartDukaan

Rev

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

Rev 36194 Rev 36195
Line 493... Line 493...
493
            long tertiary = 0;
493
            long tertiary = 0;
494
 
494
 
495
            isAboveL1 = positions.stream().anyMatch(pos -> pos.getEscalationType() != EscalationType.L1);
495
            isAboveL1 = positions.stream().anyMatch(pos -> pos.getEscalationType() != EscalationType.L1);
496
            boolean isRBM = positions.stream().anyMatch(pos -> pos.getCategoryId() == ProfitMandiConstants.TICKET_CATEGORY_RBM);
496
            boolean isRBM = positions.stream().anyMatch(pos -> pos.getCategoryId() == ProfitMandiConstants.TICKET_CATEGORY_RBM);
497
            model.addAttribute("isRBM", isRBM);
497
            model.addAttribute("isRBM", isRBM);
-
 
498
            model.addAttribute("authEmail", email);
498
            Set<Integer> fofoIds = new HashSet<>();
499
            Set<Integer> fofoIds = new HashSet<>();
499
            if (isAboveL1 && isRBM) {
500
            if (isAboveL1 && isRBM) {
500
                fofoIds = fofoStoreRepository.selectActiveStores().stream().map(x -> x.getId()).collect(Collectors.toSet());
501
                fofoIds = fofoStoreRepository.selectActiveStores().stream().map(x -> x.getId()).collect(Collectors.toSet());
501
            } else {
502
            } else {
502
                fofoIds = csService1.getAuthFofoIds(email, true);
503
                fofoIds = csService1.getAuthFofoIds(email, true);