Subversion Repositories SmartDukaan

Rev

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

Rev 32493 Rev 32877
Line 753... Line 753...
753
        regionIds.add(5);// All partners Id;
753
        regionIds.add(5);// All partners Id;
754
        List<Integer> fofoIds = new ArrayList<>();
754
        List<Integer> fofoIds = new ArrayList<>();
755
        fofoIds.add(fofoId);
755
        fofoIds.add(fofoId);
756
        fofoIds.add(0);
756
        fofoIds.add(0);
757
 
757
 
758
        LOGGER.info("fofoIds" + fofoIds);
758
        //LOGGER.info("fofoIds" + fofoIds);
759
        List<Integer> partnerPositionIds = partnerPositionRepository.selectByRegionIdAndPartnerId(regionIds, fofoIds).stream().map(x -> x.getPositionId()).collect(Collectors.toList());
759
        List<Integer> partnerPositionIds = partnerPositionRepository.selectByRegionIdAndPartnerId(regionIds, fofoIds).stream().map(x -> x.getPositionId()).collect(Collectors.toList());
760
 
760
 
761
        LOGGER.info("partnerPositionIds" + partnerPositionIds);
761
        //LOGGER.info("partnerPositionIds" + partnerPositionIds);
762
 
762
 
763
        for (Integer partnerPostionId : partnerPositionIds) {
763
        for (Integer partnerPostionId : partnerPositionIds) {
764
            Position position = positionRepository.selectByIdAndCategoryId(partnerPostionId, ProfitMandiConstants.TICKET_CATEGORY_SALES);
764
            Position position = positionRepository.selectByIdAndCategoryId(partnerPostionId, ProfitMandiConstants.TICKET_CATEGORY_SALES);
765
            LOGGER.info("position" + position);
765
            //LOGGER.info("position" + position);
766
            if (position != null) {
766
            if (position != null) {
767
 
767
 
768
                AuthUser authUser = authRepository.selectById(position.getAuthUserId());
768
                AuthUser authUser = authRepository.selectById(position.getAuthUserId());
769
                LOGGER.info("authUser" + authUser);
769
                //LOGGER.info("authUser" + authUser);
770
 
770
 
771
                authuserEsclationTypeMap.put(position.getEscalationType(), authUser);
771
                authuserEsclationTypeMap.put(position.getEscalationType(), authUser);
772
            }
772
            }
773
        }
773
        }
774
 
774
 
775
        LOGGER.info("emailEsclationTypeMap" + authuserEsclationTypeMap);
775
        //LOGGER.info("emailEsclationTypeMap" + authuserEsclationTypeMap);
776
 
776
 
777
        return authuserEsclationTypeMap;
777
        return authuserEsclationTypeMap;
778
    }
778
    }
779
 
779
 
780
    @Override
780
    @Override