Subversion Repositories SmartDukaan

Rev

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

Rev 30077 Rev 30078
Line 575... Line 575...
575
 
575
 
576
		Map<String, Set<Integer>> storeGuyMap = csService.getAuthUserPartnerIdMapping();
576
		Map<String, Set<Integer>> storeGuyMap = csService.getAuthUserPartnerIdMapping();
577
 
577
 
578
		Set<Integer> fofoIds = storeGuyMap.get("ankit.bhatia@smartdukaan.com");
578
		Set<Integer> fofoIds = storeGuyMap.get("ankit.bhatia@smartdukaan.com");
579
 
579
 
-
 
580
		LOGGER.info("fofoIds" + fofoIds);
-
 
581
 
580
		if (fofoIds == null) {
582
		if (fofoIds == null) {
581
			List<Position> positions1 = positionRepository.selectAll(authUser.getId());
583
			List<Position> positions1 = positionRepository.selectAll(authUser.getId());
582
			if (positions1.stream().filter(x -> x.getCategoryId() == ProfitMandiConstants.TICKET_CATEGORY_MASTER)
584
			if (positions1.stream().filter(x -> x.getCategoryId() == ProfitMandiConstants.TICKET_CATEGORY_MASTER)
583
					.count() > 0) {
585
					.count() > 0) {
584
				fofoIds = csService.getPositionCustomRetailerMap(positions1).values().stream().flatMap(x -> x.stream())
586
				fofoIds = csService.getPositionCustomRetailerMap(positions1).values().stream().flatMap(x -> x.stream())
Line 672... Line 674...
672
					totalPartnerTargetSecondary += totalSecondaryPlan;
674
					totalPartnerTargetSecondary += totalSecondaryPlan;
673
 
675
 
674
					totalPartnerAchievementSecondary += totalSecondaryAchivement;
676
					totalPartnerAchievementSecondary += totalSecondaryAchivement;
675
 
677
 
676
					ptam.setTotalSecondaryAchivewment(totalSecondaryAchivement);
678
					ptam.setTotalSecondaryAchivewment(totalSecondaryAchivement);
677
					ptams.add(ptam);
-
 
678
 
679
 
679
				}
680
				}
680
 
681
 
-
 
682
				ptams.add(ptam);
-
 
683
 
681
			}
684
			}
682
 
685
 
683
			tm.setTotalPartnerTargetCollection(totalPartnerTargetCollection);
686
			tm.setTotalPartnerTargetCollection(totalPartnerTargetCollection);
684
			tm.setTotalPartnerTargetSecondary(totalPartnerTargetSecondary);
687
			tm.setTotalPartnerTargetSecondary(totalPartnerTargetSecondary);
685
			tm.setTotalPartnerSecondary(totalPartnerAchievementSecondary);
688
			tm.setTotalPartnerSecondary(totalPartnerAchievementSecondary);