Subversion Repositories SmartDukaan

Rev

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

Rev 29278 Rev 29280
Line 113... Line 113...
113
				color.add("yellow");
113
				color.add("yellow");
114
				color.add("green");
114
				color.add("green");
115
			}
115
			}
116
			if(authPositon)
116
			if(authPositon)
117
			{
117
			{
118
				List<Integer> authUserIds = authService.getDirectReportee(authUser.getId());
118
				List<Integer> authUserIds = authService.getAllReportees(authUser.getId());
119
				LOGGER.info("authIds" + authUserIds);
119
				LOGGER.info("authIds" + authUserIds);
120
			leads = leadRepository.selectAllByColorStatusAndUpdatedTimestampAndAuthIds(leadStatus, authUserIds, color,
120
			leads = leadRepository.selectAllByColorStatusAndUpdatedTimestampAndAuthIds(leadStatus, authUserIds, color,
121
					LocalDateTime.now().withDayOfMonth(1).minusMonths(3));
121
					LocalDateTime.now().withDayOfMonth(1).minusMonths(3));
122
			
122
			
123
			}
123
			}
Line 128... Line 128...
128
			}
128
			}
129
			
129
			
130
		} else {
130
		} else {
131
 
131
 
132
			if(authPositon) {
132
			if(authPositon) {
133
				List<Integer> authUserIds = authService.getDirectReportee(authUser.getId());
133
				List<Integer> authUserIds = authService.getAllReportees(authUser.getId());
134
				LOGGER.info("authIds" + authUserIds);
134
				LOGGER.info("authIds" + authUserIds);
135
				leads =	leadRepository.selectAllByStatusAndUpdatedTimestampAndAuthId(leadStatus,
135
				leads =	leadRepository.selectAllByStatusAndUpdatedTimestampAndAuthId(leadStatus,
136
						LocalDateTime.now().withDayOfMonth(1).minusMonths(3),authUserIds);
136
						LocalDateTime.now().withDayOfMonth(1).minusMonths(3),authUserIds);
137
			
137
			
138
			}
138
			}