Subversion Repositories SmartDukaan

Rev

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

Rev 25929 Rev 25936
Line 1952... Line 1952...
1952
	public void notifyLead() throws Exception {
1952
	public void notifyLead() throws Exception {
1953
		List<Lead> leadsToNotify = leadRepository.selectLeadsScheduledBetweenDate(LocalDateTime.now().minusDays(15),
1953
		List<Lead> leadsToNotify = leadRepository.selectLeadsScheduledBetweenDate(LocalDateTime.now().minusDays(15),
1954
				LocalDateTime.now().plusHours(4));
1954
				LocalDateTime.now().plusHours(4));
1955
		Map<Integer, String> authUserEmailMap = authRepository.selectAllActiveUser().stream()
1955
		Map<Integer, String> authUserEmailMap = authRepository.selectAllActiveUser().stream()
1956
				.collect(Collectors.toMap(x -> x.getId(), x -> x.getEmailId()));
1956
				.collect(Collectors.toMap(x -> x.getId(), x -> x.getEmailId()));
-
 
1957
		System.out.printf("authUserEmailMap - %s", authUserEmailMap);
1957
		Map<String, Integer> dtrEmailMap = dtrUserRepository
1958
		Map<String, Integer> dtrEmailMap = dtrUserRepository
1958
				.selectAllByEmailIds(new ArrayList<>(authUserEmailMap.values())).stream()
1959
				.selectAllByEmailIds(new ArrayList<>(authUserEmailMap.values())).stream()
1959
				.collect(Collectors.toMap(x -> x.getEmailId(), x -> x.getId()));
1960
				.collect(Collectors.toMap(x -> x.getEmailId(), x -> x.getId()));
-
 
1961
 
-
 
1962
		System.out.printf("dtrEmailMap - %s", dtrEmailMap);
-
 
1963
		
1960
		Map<Integer, Integer> authUserKeyMap = new HashMap<>();
1964
		Map<Integer, Integer> authUserKeyMap = new HashMap<>();
1961
 
1965
 
1962
		for (Map.Entry<Integer, String> authUserEmail : authUserEmailMap.entrySet()) {
1966
		for (Map.Entry<Integer, String> authUserEmail : authUserEmailMap.entrySet()) {
1963
			int authId = authUserEmail.getKey();
1967
			int authId = authUserEmail.getKey();
1964
			String email = authUserEmail.getValue();
1968
			String email = authUserEmail.getValue();