Subversion Repositories SmartDukaan

Rev

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

Rev 25799 Rev 26111
Line 498... Line 498...
498
			Set<String> partnerEmails = positionPartnerEntry.getValue().stream()
498
			Set<String> partnerEmails = positionPartnerEntry.getValue().stream()
499
					.filter(x -> activeFofoIds.contains(x.getPartnerId())).map(x -> x.getEmail())
499
					.filter(x -> activeFofoIds.contains(x.getPartnerId())).map(x -> x.getEmail())
500
					.collect(Collectors.toSet());
500
					.collect(Collectors.toSet());
501
			AuthUser authUser = authRepository.selectById(authUserId);
501
			AuthUser authUser = authRepository.selectById(authUserId);
502
			if (authUser.isActive()) {
502
			if (authUser.isActive()) {
-
 
503
				if(!storeGuyMap.containsKey(authUser.getEmailId())) {
503
				storeGuyMap.put(authUser.getEmailId(), partnerEmails);
504
					storeGuyMap.put(authUser.getEmailId(), partnerEmails);
-
 
505
				} else {
-
 
506
					storeGuyMap.get(authUser.getEmailId()).addAll(partnerEmails);
-
 
507
				}
504
			}
508
			}
505
		}
509
		}
506
		return storeGuyMap;
510
		return storeGuyMap;
507
	}
511
	}
508
 
512
 
Line 523... Line 527...
523
			Set<Integer> partnerEmails = positionPartnerEntry.getValue().stream()
527
			Set<Integer> partnerEmails = positionPartnerEntry.getValue().stream()
524
					.filter(x -> activeFofoIds.contains(x.getPartnerId())).map(x -> x.getPartnerId())
528
					.filter(x -> activeFofoIds.contains(x.getPartnerId())).map(x -> x.getPartnerId())
525
					.collect(Collectors.toSet());
529
					.collect(Collectors.toSet());
526
			AuthUser authUser = authRepository.selectById(authUserId);
530
			AuthUser authUser = authRepository.selectById(authUserId);
527
			if (authUser.isActive()) {
531
			if (authUser.isActive()) {
-
 
532
				if(!storeGuyMap.containsKey(authUser.getEmailId())) {
528
				storeGuyMap.put(authUser.getEmailId(), partnerEmails);
533
					storeGuyMap.put(authUser.getEmailId(), partnerEmails);
-
 
534
				} else {
-
 
535
					storeGuyMap.get(authUser.getEmailId()).addAll(partnerEmails);
-
 
536
				}
529
			}
537
			}
530
		}
538
		}
531
		return storeGuyMap;
539
		return storeGuyMap;
532
	}
540
	}
533
 
541