Subversion Repositories SmartDukaan

Rev

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

Rev 28977 Rev 29229
Line 617... Line 617...
617
				.collect(Collectors.toSet());
617
				.collect(Collectors.toSet());
618
		List<Position> categoryPositions = positionRepository
618
		List<Position> categoryPositions = positionRepository
619
				.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_SALES);
619
				.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_SALES);
620
		categoryPositions
620
		categoryPositions
621
				.addAll(positionRepository.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_RBM));
621
				.addAll(positionRepository.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_RBM));
-
 
622
 
-
 
623
		categoryPositions
-
 
624
				.addAll(positionRepository.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_CRM));
-
 
625
 
622
		Map<Integer, Position> positionsMap = categoryPositions.stream()
626
		Map<Integer, Position> positionsMap = categoryPositions.stream()
623
				.collect(Collectors.toMap(x -> x.getId(), x -> x));
627
				.collect(Collectors.toMap(x -> x.getId(), x -> x));
624
 
628
 
625
		Map<Integer, List<CustomRetailer>> positonPartnerMap = this.getPositionCustomRetailerMap(categoryPositions);
629
		Map<Integer, List<CustomRetailer>> positonPartnerMap = this.getPositionCustomRetailerMap(categoryPositions);
626
		for (Map.Entry<Integer, List<CustomRetailer>> positionPartnerEntry : positonPartnerMap.entrySet()) {
630
		for (Map.Entry<Integer, List<CustomRetailer>> positionPartnerEntry : positonPartnerMap.entrySet()) {
Line 759... Line 763...
759
		return authUsers;
763
		return authUsers;
760
	}
764
	}
761
 
765
 
762
	@Override
766
	@Override
763
	public List<AuthUser> getAuthUserIds(int categoryId, List<EscalationType> escalationType) {
767
	public List<AuthUser> getAuthUserIds(int categoryId, List<EscalationType> escalationType) {
764
	
768
 
765
		List<Position> positions = positionRepository.selectPositionbyCategoryIdAndEscalationTypes(categoryId,
769
		List<Position> positions = positionRepository.selectPositionbyCategoryIdAndEscalationTypes(categoryId,
766
				escalationType);
770
				escalationType);
767
		List<Integer> authIds = positions.stream().map(x -> x.getAuthUserId()).distinct().collect(Collectors.toList());
771
		List<Integer> authIds = positions.stream().map(x -> x.getAuthUserId()).distinct().collect(Collectors.toList());
768
 
772
 
769
		LOGGER.info("authIds" + authIds);
773
		LOGGER.info("authIds" + authIds);