Subversion Repositories SmartDukaan

Rev

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

Rev 31470 Rev 31472
Line 658... Line 658...
658
				.addAll(positionRepository.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_CRM));
658
				.addAll(positionRepository.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_CRM));
659
 
659
 
660
		categoryPositions
660
		categoryPositions
661
				.addAll(positionRepository.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_MARKETING));
661
				.addAll(positionRepository.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_MARKETING));
662
 
662
 
-
 
663
		categoryPositions
-
 
664
				.addAll(positionRepository.selectPositionByCategoryId(ProfitMandiConstants.TICKET_CATEGORY_TRAINING));
-
 
665
 
663
		Map<Integer, Position> positionsMap = categoryPositions.stream()
666
		Map<Integer, Position> positionsMap = categoryPositions.stream()
664
				.collect(Collectors.toMap(x -> x.getId(), x -> x));
667
				.collect(Collectors.toMap(x -> x.getId(), x -> x));
665
 
668
 
666
		Map<Integer, List<CustomRetailer>> positonPartnerMap = this.getPositionCustomRetailerMap(categoryPositions);
669
		Map<Integer, List<CustomRetailer>> positonPartnerMap = this.getPositionCustomRetailerMap(categoryPositions);
667
		for (Map.Entry<Integer, List<CustomRetailer>> positionPartnerEntry : positonPartnerMap.entrySet()) {
670
		for (Map.Entry<Integer, List<CustomRetailer>> positionPartnerEntry : positonPartnerMap.entrySet()) {
Line 980... Line 983...
980
		List<Integer> categoryIds = Arrays.asList(ProfitMandiConstants.TICKET_CATEGORY_LOGISTICS,
983
		List<Integer> categoryIds = Arrays.asList(ProfitMandiConstants.TICKET_CATEGORY_LOGISTICS,
981
				ProfitMandiConstants.TICKET_CATEGORY_FINANCIAL_SERVICES, ProfitMandiConstants.TICKET_CATEGORY_CATEGORY,
984
				ProfitMandiConstants.TICKET_CATEGORY_FINANCIAL_SERVICES, ProfitMandiConstants.TICKET_CATEGORY_CATEGORY,
982
				ProfitMandiConstants.TICKET_CATEGORY_RBM, ProfitMandiConstants.TICKET_CATEGORY_SALES,
985
				ProfitMandiConstants.TICKET_CATEGORY_RBM, ProfitMandiConstants.TICKET_CATEGORY_SALES,
983
				ProfitMandiConstants.TICKET_CATEGORY_MARKETING, ProfitMandiConstants.TICKET_CATEGORY_ACCOUNTS,
986
				ProfitMandiConstants.TICKET_CATEGORY_MARKETING, ProfitMandiConstants.TICKET_CATEGORY_ACCOUNTS,
984
				ProfitMandiConstants.TICKET_CATEGORY_BUSINESSINTELLIGENT,
987
				ProfitMandiConstants.TICKET_CATEGORY_BUSINESSINTELLIGENT,
985
				ProfitMandiConstants.TICKET_CATEGORY_TECHNOLOGY,ProfitMandiConstants.TICKET_CATEGORY_TRAINING);
988
				ProfitMandiConstants.TICKET_CATEGORY_TECHNOLOGY, ProfitMandiConstants.TICKET_CATEGORY_TRAINING);
986
 
989
 
987
		Map<String, Set<Integer>> storeGuyMap = this.getAuthUserPartnerIdMappingByCategoryIds(categoryIds, active);
990
		Map<String, Set<Integer>> storeGuyMap = this.getAuthUserPartnerIdMappingByCategoryIds(categoryIds, active);
988
		Set<Integer> authfofoIds = storeGuyMap.get(email);
991
		Set<Integer> authfofoIds = storeGuyMap.get(email);
989
 
992
 
990
		AuthUser authUser = authRepository.selectByEmailOrMobile(email);
993
		AuthUser authUser = authRepository.selectByEmailOrMobile(email);