Subversion Repositories SmartDukaan

Rev

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

Rev 30445 Rev 30458
Line 873... Line 873...
873
 
873
 
874
			LOGGER.info("remarkIds {}", remarkIds);
874
			LOGGER.info("remarkIds {}", remarkIds);
875
 
875
 
876
			long todayOverallCall = 0;
876
			long todayOverallCall = 0;
877
			if (!remarkIds.isEmpty()) {
877
			if (!remarkIds.isEmpty()) {
-
 
878
 
-
 
879
				if (!authUser.getEmailId().equals(email)) {
-
 
880
 
878
				todayOverallCall = partnerCollectionRemarkRepository.selectByIds(remarkIds).stream()
881
					todayOverallCall = partnerCollectionRemarkRepository.selectByIds(remarkIds).stream()
879
						.filter(x -> x.getCreateTimestamp().toLocalDate().equals(LocalDate.now()))
882
							.filter(x -> x.getCreateTimestamp().toLocalDate().equals(LocalDate.now()))
-
 
883
							.collect(Collectors.counting());
-
 
884
				} else {
-
 
885
 
-
 
886
					todayOverallCall = partnerCollectionRemarkRepository
-
 
887
							.selectByAuthIdAndIds(authRepository.selectByEmailOrMobile(email).getId(), remarkIds)
-
 
888
							.stream().filter(x -> x.getCreateTimestamp().toLocalDate().equals(LocalDate.now()))
880
						.collect(Collectors.counting());
889
							.collect(Collectors.counting());
-
 
890
 
-
 
891
				}
881
 
892
 
882
			}
893
			}
883
 
894
 
884
			ChartLeadModel cm = this
895
			ChartLeadModel cm = this
885
					.getCollectionCount(foundCollectionMap.values().stream().collect(Collectors.toList()));
896
					.getCollectionCount(foundCollectionMap.values().stream().collect(Collectors.toList()));