Subversion Repositories SmartDukaan

Rev

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

Rev 27861 Rev 28377
Line 725... Line 725...
725
		LOGGER.info("emailEsclationTypeMap" + authuserEsclationTypeMap);
725
		LOGGER.info("emailEsclationTypeMap" + authuserEsclationTypeMap);
726
 
726
 
727
		return authuserEsclationTypeMap;
727
		return authuserEsclationTypeMap;
728
	}
728
	}
729
 
729
 
-
 
730
	@Override
-
 
731
	public List<AuthUser> getAuthUserIdByPartnerId(int fofoId) {
-
 
732
		List<AuthUser> authUsers = new ArrayList<>();
-
 
733
		List<Integer> regionIds = partnerRegionRepository.selectByfofoId(fofoId).stream().map(x -> x.getRegionId())
-
 
734
				.collect(Collectors.toList());
-
 
735
 
-
 
736
		regionIds.add(5);// All partners Id;
-
 
737
		List<Integer> fofoIds = new ArrayList<>();
-
 
738
		fofoIds.add(fofoId);
-
 
739
		fofoIds.add(0);
-
 
740
 
-
 
741
		LOGGER.info("fofoIds" + fofoIds);
-
 
742
		List<Integer> partnerPositionIds = partnersPositionRepository.selectByRegionIdAndPartnerId(regionIds, fofoIds)
-
 
743
				.stream().map(x -> x.getPositionId()).collect(Collectors.toList());
-
 
744
 
-
 
745
		LOGGER.info("partnerPositionIds" + partnerPositionIds);
-
 
746
 
-
 
747
		for (Integer partnerPostionId : partnerPositionIds) {
-
 
748
			Position position = positionRepository.selectByIdAndCategoryId(partnerPostionId,
-
 
749
					ProfitMandiConstants.TICKET_CATEGORY_SALES);
-
 
750
			LOGGER.info("position" + position);
-
 
751
			if (position != null) {
-
 
752
 
-
 
753
				AuthUser authUser = authRepository.selectById(position.getAuthUserId());
-
 
754
				LOGGER.info("authUser" + authUser);
-
 
755
				authUsers.add(authUser);
-
 
756
			}
-
 
757
		}
-
 
758
 
-
 
759
		return authUsers;
-
 
760
	}
-
 
761
 
730
}
762
}