Subversion Repositories SmartDukaan

Rev

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

Rev 35236 Rev 35395
Line 1730... Line 1730...
1730
            List<Integer> fofoIdList = new ArrayList<>(fofoIds);
1730
            List<Integer> fofoIdList = new ArrayList<>(fofoIds);
1731
 
1731
 
1732
            Map<Integer, ActivationType> partnerActivationType = fofoStoreRepository.selectByRetailerIds(fofoIdList)
1732
            Map<Integer, ActivationType> partnerActivationType = fofoStoreRepository.selectByRetailerIds(fofoIdList)
1733
                    .stream().collect(Collectors.toMap(x -> x.getId(), x -> x.getActivationType()));
1733
                    .stream().collect(Collectors.toMap(x -> x.getId(), x -> x.getActivationType()));
1734
            //Only L3 and above can change the accessType
1734
            //Only L3 and above can change the accessType
1735
            boolean canChangeActionType = positionRepository.selectAll(authUser.getId())
1735
            boolean canChangeActionType = positionRepository.selectAllByAuthUserId(authUser.getId())
1736
                    .stream().filter(x -> x.getEscalationType().isGreaterThanEqualTo(EscalationType.L3)).count() > 0;
1736
                    .stream().filter(x -> x.getEscalationType().isGreaterThanEqualTo(EscalationType.L3)).count() > 0;
1737
            model.addAttribute("canChangeActivationType", canChangeActionType);
1737
            model.addAttribute("canChangeActivationType", canChangeActionType);
1738
            model.addAttribute("partnerActivationType", partnerActivationType);
1738
            model.addAttribute("partnerActivationType", partnerActivationType);
1739
            model.addAttribute("activationTypes", ActivationType.values());
1739
            model.addAttribute("activationTypes", ActivationType.values());
1740
 
1740