Subversion Repositories SmartDukaan

Rev

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

Rev 36008 Rev 36194
Line 492... Line 492...
492
            long pendingIndent = 0;
492
            long pendingIndent = 0;
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
 
-
 
-
 
497
            model.addAttribute("isRBM", isRBM);
498
            Set<Integer> fofoIds = new HashSet<>();
498
            Set<Integer> fofoIds = new HashSet<>();
499
            if (isAboveL1 && isRBM) {
499
            if (isAboveL1 && isRBM) {
500
                fofoIds = fofoStoreRepository.selectActiveStores().stream().map(x -> x.getId()).collect(Collectors.toSet());
500
                fofoIds = fofoStoreRepository.selectActiveStores().stream().map(x -> x.getId()).collect(Collectors.toSet());
501
            } else {
501
            } else {
502
                fofoIds = csService1.getAuthFofoIds(email, true);
502
                fofoIds = csService1.getAuthFofoIds(email, true);
Line 586... Line 586...
586
                        .count() > 0) {
586
                        .count() > 0) {
587
                    authUserTicketCount = ticketRepository.selectAllAuthUserTicketCount(Optional.of(false));
587
                    authUserTicketCount = ticketRepository.selectAllAuthUserTicketCount(Optional.of(false));
588
                }
588
                }
589
            }
589
            }
590
 
590
 
591
            if (Arrays.asList("amit.gupta@smartdukaan.com", "ranu.rajput@smartdukaan.com",
-
 
592
                    "vikas.jangra@smartdukaan.com", "aman.gupta@smartdukaan.com", "garima.ramwani@smartdukaan.com").contains(email)) {
591
            if (Arrays.asList("amit.gupta@smartdukaan.com", "ranu.rajput@smartdukaan.com", "vikas.jangra@smartdukaan.com", "aman.gupta@smartdukaan.com").contains(email)) {
593
                menus = menuRepository.selectAllBySequence();
592
                menus = menuRepository.selectAllBySequence();
594
            } else if (positions.size() > 0) {
593
            } else if (positions.size() > 0) {
595
                if (positions.stream().filter(x -> x.getEscalationType().equals(EscalationType.L5)).count() > 0) {
594
                if (positions.stream().filter(x -> x.getEscalationType().equals(EscalationType.L5)).count() > 0) {
596
                    menus = menuRepository.selectAllBySequence();
595
                    menus = menuRepository.selectAllBySequence();
597
                } else {
596
                } else {