| 23756 |
amit.gupta |
1 |
package com.smartdukaan.cron.scheduled;
|
|
|
2 |
|
| 30049 |
amit.gupta |
3 |
import com.smartdukaan.cron.migrations.RunOnceTasks;
|
|
|
4 |
import com.smartdukaan.cron.monitored.NagiosMonitorTasks;
|
|
|
5 |
import com.smartdukaan.cron.properties.WriteToPropertiesFile;
|
|
|
6 |
import com.smartdukaan.cron.scheduled.leadsync.LeadSyncRunner;
|
| 32411 |
amit.gupta |
7 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 23756 |
amit.gupta |
8 |
import org.apache.logging.log4j.LogManager;
|
|
|
9 |
import org.apache.logging.log4j.Logger;
|
|
|
10 |
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
11 |
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
12 |
import org.springframework.stereotype.Component;
|
|
|
13 |
|
| 30049 |
amit.gupta |
14 |
import java.time.LocalDate;
|
|
|
15 |
import java.time.LocalDateTime;
|
|
|
16 |
import java.util.Date;
|
|
|
17 |
import java.util.LinkedHashMap;
|
| 23756 |
amit.gupta |
18 |
|
|
|
19 |
@Component
|
| 30887 |
amit.gupta |
20 |
//@ConditionalOnProperty(name = "scheduled", havingValue = "true", matchIfMissing = true)
|
| 23756 |
amit.gupta |
21 |
public class ScheduledSkeleton {
|
| 23794 |
govind |
22 |
|
| 32048 |
tejbeer |
23 |
private static final Logger log = LogManager.getLogger(ScheduledSkeleton.class);
|
| 23756 |
amit.gupta |
24 |
|
| 32048 |
tejbeer |
25 |
@Autowired
|
|
|
26 |
private ScheduledTasks scheduledTasks;
|
| 28205 |
tejbeer |
27 |
|
| 32048 |
tejbeer |
28 |
@Autowired
|
|
|
29 |
private LeadSyncRunner leadSyncRunner;
|
| 24841 |
govind |
30 |
|
| 32048 |
tejbeer |
31 |
@Autowired
|
|
|
32 |
private Reconciliation reconciliation;
|
| 25822 |
amit.gupta |
33 |
|
| 32048 |
tejbeer |
34 |
@Autowired
|
|
|
35 |
private RunOnceTasks runOnceTasks;
|
| 23756 |
amit.gupta |
36 |
|
| 32048 |
tejbeer |
37 |
@Autowired
|
|
|
38 |
NagiosMonitorTasks nagiosMonitorTasks;
|
| 24188 |
govind |
39 |
|
| 32048 |
tejbeer |
40 |
@Autowired
|
|
|
41 |
private TicketRelatedScheduledTask ticketRelatedScheduledTask;
|
| 24841 |
govind |
42 |
|
| 32048 |
tejbeer |
43 |
@Autowired
|
|
|
44 |
private OnBoardingRelatedSchelduleTask onBoardingRelatedSchelduleTask;
|
| 28921 |
tejbeer |
45 |
|
| 32048 |
tejbeer |
46 |
@Autowired
|
|
|
47 |
private WriteToPropertiesFile writeToPropertiesFile;
|
| 29673 |
manish |
48 |
|
| 32048 |
tejbeer |
49 |
String nagiosCronPropertiesFile = "/var/log/services/nagios-Cron-Monitoring.properties";
|
| 29757 |
tejbeer |
50 |
|
| 32048 |
tejbeer |
51 |
@Scheduled(cron = "0 0 2 * * *")
|
|
|
52 |
public void processDailySchemes() throws Exception {
|
| 29757 |
tejbeer |
53 |
|
| 32048 |
tejbeer |
54 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
55 |
propertiesDetails.put("processDailySchemes", "0");
|
| 29673 |
manish |
56 |
|
| 32048 |
tejbeer |
57 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
58 |
int maxMinusDays = 5;
|
|
|
59 |
int currentDayOfMonth = LocalDate.now().getDayOfMonth();
|
|
|
60 |
int minusDays = currentDayOfMonth > maxMinusDays ? maxMinusDays : currentDayOfMonth - 1;
|
|
|
61 |
if (minusDays > 0) {
|
|
|
62 |
scheduledTasks.processScheme(LocalDateTime.now().minusDays(minusDays), LocalDateTime.now(), false);
|
|
|
63 |
}
|
|
|
64 |
propertiesDetails.put("processDailySchemes", "1");
|
|
|
65 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
66 |
|
| 32048 |
tejbeer |
67 |
}
|
| 24841 |
govind |
68 |
|
| 32048 |
tejbeer |
69 |
@Scheduled(cron = "0 15 0 * * *")
|
|
|
70 |
public void runOnceTasks() throws Exception {
|
| 29757 |
tejbeer |
71 |
|
| 32048 |
tejbeer |
72 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
73 |
propertiesDetails.put("runOnceTasks", "0");
|
| 29673 |
manish |
74 |
|
| 32048 |
tejbeer |
75 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
76 |
|
| 32048 |
tejbeer |
77 |
scheduledTasks.reconcileRecharge();
|
| 29757 |
tejbeer |
78 |
|
| 32048 |
tejbeer |
79 |
propertiesDetails.put("runOnceTasks", "1");
|
|
|
80 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
81 |
}
|
| 25822 |
amit.gupta |
82 |
|
| 32048 |
tejbeer |
83 |
/*
|
|
|
84 |
* @Scheduled(cron = "0 0 8 * * *") public void mailDashboardScreenshots()
|
|
|
85 |
* throws Exception { runOnceTasks.mailDashboardScreenshots(); }
|
|
|
86 |
*/
|
| 25721 |
tejbeer |
87 |
|
| 32048 |
tejbeer |
88 |
@Scheduled(cron = "0 05 0 1,16 * ?")
|
|
|
89 |
public void processRechargeCashback() throws Throwable {
|
| 29673 |
manish |
90 |
|
| 32048 |
tejbeer |
91 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
92 |
propertiesDetails.put("processRechargeCashback", "0");
|
| 29673 |
manish |
93 |
|
| 32048 |
tejbeer |
94 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
95 |
scheduledTasks.processRechargeCashback();
|
| 29673 |
manish |
96 |
|
| 32048 |
tejbeer |
97 |
propertiesDetails.put("processRechargeCashback", "1");
|
|
|
98 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
99 |
|
| 32048 |
tejbeer |
100 |
}
|
| 23794 |
govind |
101 |
|
| 32048 |
tejbeer |
102 |
@Scheduled(cron = "0 0 6 * * *")
|
|
|
103 |
public void sendPartnerInvestmentDetails() throws Exception {
|
|
|
104 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
105 |
propertiesDetails.put("sendPartnerInvestmentDetails", "0");
|
|
|
106 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
107 |
scheduledTasks.sendPartnerInvestmentDetails();
|
|
|
108 |
long secs = (new Date().getTime()) / 1000;
|
|
|
109 |
log.info("sendPartnerInvestmentDetails" + LocalDateTime.now());
|
| 29757 |
tejbeer |
110 |
|
| 32048 |
tejbeer |
111 |
propertiesDetails.put("investmentDate", Long.toString(secs));
|
|
|
112 |
propertiesDetails.put("sendPartnerInvestmentDetails", "1");
|
|
|
113 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
114 |
|
| 32048 |
tejbeer |
115 |
}
|
| 28921 |
tejbeer |
116 |
|
| 32048 |
tejbeer |
117 |
@Scheduled(cron = "0 0 10,15,17 * * *")
|
|
|
118 |
public void sendIndentTertiaryReport() throws Exception {
|
| 29757 |
tejbeer |
119 |
|
| 32048 |
tejbeer |
120 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
121 |
propertiesDetails.put("sendIndentTertiaryReport", "0");
|
| 29673 |
manish |
122 |
|
| 32048 |
tejbeer |
123 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
124 |
|
| 32048 |
tejbeer |
125 |
scheduledTasks.sendIndentTertiary();
|
| 29757 |
tejbeer |
126 |
|
| 32048 |
tejbeer |
127 |
propertiesDetails.put("sendIndentTertiaryReport", "1");
|
|
|
128 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
129 |
|
| 32048 |
tejbeer |
130 |
}
|
| 28921 |
tejbeer |
131 |
|
| 32048 |
tejbeer |
132 |
@Scheduled(cron = "0 0 6 * * *")
|
|
|
133 |
public void checkPartnerActiveStoreByStatus() throws Exception {
|
|
|
134 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
135 |
propertiesDetails.put("checkPartnerActiveStoreByStatus", "0");
|
| 29673 |
manish |
136 |
|
| 32048 |
tejbeer |
137 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
138 |
|
| 32048 |
tejbeer |
139 |
scheduledTasks.checkPartnerActiveStore();
|
|
|
140 |
propertiesDetails.put("checkPartnerActiveStoreByStatus", "1");
|
|
|
141 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
142 |
|
| 32048 |
tejbeer |
143 |
}
|
| 26790 |
tejbeer |
144 |
|
| 32048 |
tejbeer |
145 |
// @Scheduled(cron = "0 0 8 * * *")
|
|
|
146 |
public void sendStockAgeingReport() throws Throwable {
|
| 29757 |
tejbeer |
147 |
|
| 32048 |
tejbeer |
148 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
149 |
propertiesDetails.put("sendStockAgeingReport", "0");
|
| 29673 |
manish |
150 |
|
| 32048 |
tejbeer |
151 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
152 |
|
| 32048 |
tejbeer |
153 |
scheduledTasks.sendAgeingReport();
|
| 29757 |
tejbeer |
154 |
|
| 32048 |
tejbeer |
155 |
propertiesDetails.put("sendStockAgeingReport", "1");
|
|
|
156 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
157 |
|
| 32048 |
tejbeer |
158 |
}
|
| 24131 |
govind |
159 |
|
| 32048 |
tejbeer |
160 |
@Scheduled(cron = "0 0 11 * * *")
|
|
|
161 |
public void escalateTicket() throws Exception {
|
|
|
162 |
log.info("escalate ticket");
|
|
|
163 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
164 |
propertiesDetails.put("escalateTicket", "0");
|
|
|
165 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
166 |
ticketRelatedScheduledTask.escalateTicket();
|
| 29757 |
tejbeer |
167 |
|
| 32048 |
tejbeer |
168 |
propertiesDetails.put("escalateTicket", "1");
|
|
|
169 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
170 |
|
| 32048 |
tejbeer |
171 |
}
|
| 24841 |
govind |
172 |
|
| 32048 |
tejbeer |
173 |
@Scheduled(cron = "0 0 11 * * *")
|
|
|
174 |
public void alertTicketToUser() throws Exception {
|
|
|
175 |
log.info("alert for ticket");
|
|
|
176 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
177 |
propertiesDetails.put("alertTicketToUser", "0");
|
|
|
178 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
179 |
|
| 32048 |
tejbeer |
180 |
ticketRelatedScheduledTask.alertforTicket();
|
|
|
181 |
propertiesDetails.put("alertTicketToUser", "1");
|
|
|
182 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
183 |
|
| 32048 |
tejbeer |
184 |
}
|
| 24841 |
govind |
185 |
|
| 32048 |
tejbeer |
186 |
@Scheduled(cron = "0 0 14,18,23 ? * *")
|
|
|
187 |
public void dailySaleNotification() throws Exception {
|
|
|
188 |
log.info("daily send Notification");
|
|
|
189 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
190 |
propertiesDetails.put("dailySaleNotification", "0");
|
|
|
191 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
192 |
|
| 32048 |
tejbeer |
193 |
scheduledTasks.sendDailySalesNotificationToPartner(null);
|
| 29757 |
tejbeer |
194 |
|
| 32048 |
tejbeer |
195 |
propertiesDetails.put("dailySaleNotification", "1");
|
|
|
196 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
197 |
|
| 32048 |
tejbeer |
198 |
}
|
| 24841 |
govind |
199 |
|
| 32048 |
tejbeer |
200 |
/*
|
|
|
201 |
* @Scheduled(cron = "0 0 6 * * *") public void dailyReconciliation() throws
|
|
|
202 |
* Exception { reconciliation.dailyReconciliation(); }
|
|
|
203 |
*/
|
| 28205 |
tejbeer |
204 |
|
| 32048 |
tejbeer |
205 |
@Scheduled(cron = "0 0 1 * * *")
|
|
|
206 |
public void selectFinServiceFollowUpDateByCurrDate() throws Exception {
|
|
|
207 |
log.info("selectFinServiceFollowUpDateByCurrDate");
|
|
|
208 |
scheduledTasks.selectFinServiceFollowUpDateByCurrDate(LocalDate.now());
|
| 30049 |
amit.gupta |
209 |
|
| 32048 |
tejbeer |
210 |
}
|
| 30049 |
amit.gupta |
211 |
|
| 32165 |
amit.gupta |
212 |
@Scheduled(cron = "0 0 4 * * *")
|
| 32048 |
tejbeer |
213 |
public void processActivation() throws Exception {
|
| 29757 |
tejbeer |
214 |
|
| 32048 |
tejbeer |
215 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
216 |
propertiesDetails.put("processActivation", "0");
|
|
|
217 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
218 |
|
| 32048 |
tejbeer |
219 |
scheduledTasks.processActivation();
|
| 29757 |
tejbeer |
220 |
|
| 32048 |
tejbeer |
221 |
propertiesDetails.put("processActivation", "1");
|
|
|
222 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
223 |
|
| 32048 |
tejbeer |
224 |
}
|
| 25721 |
tejbeer |
225 |
|
| 32048 |
tejbeer |
226 |
// TODO: Change it back to first of every month
|
|
|
227 |
// @Scheduled(cron = "0 0 1 1 * *")
|
|
|
228 |
@Scheduled(cron = "0 0 1 2 * *")
|
|
|
229 |
public void rollOutUpgardedMargins() throws Exception {
|
|
|
230 |
scheduledTasks.rollOutUpgardedMarginsNextMonth();
|
| 30788 |
amit.gupta |
231 |
|
| 32048 |
tejbeer |
232 |
}
|
| 30788 |
amit.gupta |
233 |
|
| 32048 |
tejbeer |
234 |
@Scheduled(cron = "0 */5 * * * *")
|
|
|
235 |
public void sendNotification() throws Throwable {
|
| 29757 |
tejbeer |
236 |
|
| 32048 |
tejbeer |
237 |
log.info("send Notification");
|
|
|
238 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
239 |
propertiesDetails.put("sendNotification", "0");
|
|
|
240 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
241 |
|
| 32048 |
tejbeer |
242 |
scheduledTasks.sendNotification();
|
|
|
243 |
propertiesDetails.put("sendNotification", "1");
|
|
|
244 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
245 |
log.info("send Notification Done");
|
| 29673 |
manish |
246 |
|
| 32048 |
tejbeer |
247 |
}
|
| 28205 |
tejbeer |
248 |
|
| 32048 |
tejbeer |
249 |
@Scheduled(cron = "0 */15 * * * *")
|
|
|
250 |
public void checkRazorPayPaymentStatus() throws Throwable {
|
| 29757 |
tejbeer |
251 |
|
| 32048 |
tejbeer |
252 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
253 |
propertiesDetails.put("checkRazorPayPaymentStatus", "0");
|
|
|
254 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
255 |
|
| 32048 |
tejbeer |
256 |
scheduledTasks.checkRazorPayPaymentStatus();
|
|
|
257 |
propertiesDetails.put("checkRazorPayPaymentStatus", "1");
|
|
|
258 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
259 |
|
| 32048 |
tejbeer |
260 |
}
|
| 28377 |
tejbeer |
261 |
|
| 32048 |
tejbeer |
262 |
@Scheduled(fixedDelay = 30 * 60 * 1000)
|
|
|
263 |
public void updateIrnsToInvoices() throws Throwable {
|
|
|
264 |
runOnceTasks.updateIrnsToInvoices();
|
|
|
265 |
}
|
| 31612 |
tejbeer |
266 |
|
| 32048 |
tejbeer |
267 |
// No longer needed
|
|
|
268 |
// @Scheduled(cron = "0 */10 * * * *")
|
|
|
269 |
public void attachToffeeInvoices() throws Throwable {
|
| 29757 |
tejbeer |
270 |
|
| 32048 |
tejbeer |
271 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
272 |
propertiesDetails.put("attachToffeeInvoices", "0");
|
|
|
273 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
274 |
|
| 32048 |
tejbeer |
275 |
scheduledTasks.attachToffeeInvoices();
|
| 29757 |
tejbeer |
276 |
|
| 32048 |
tejbeer |
277 |
propertiesDetails.put("attachToffeeInvoices", "1");
|
|
|
278 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
279 |
|
| 32048 |
tejbeer |
280 |
}
|
| 24841 |
govind |
281 |
|
| 32048 |
tejbeer |
282 |
@Scheduled(cron = "0 0 5 * * *")
|
|
|
283 |
public void ticketClosed() throws Throwable {
|
| 26283 |
tejbeer |
284 |
|
| 32048 |
tejbeer |
285 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
286 |
propertiesDetails.put("ticketClosed", "0");
|
|
|
287 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
288 |
|
| 32048 |
tejbeer |
289 |
scheduledTasks.ticketClosed();
|
| 29757 |
tejbeer |
290 |
|
| 32048 |
tejbeer |
291 |
propertiesDetails.put("ticketClosed", "1");
|
|
|
292 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 26283 |
tejbeer |
293 |
|
| 32048 |
tejbeer |
294 |
}
|
| 26283 |
tejbeer |
295 |
|
| 32048 |
tejbeer |
296 |
@Scheduled(cron = "0 0 8 * * *")
|
|
|
297 |
public void checkfocusedModelInPartnerStock() throws Throwable {
|
|
|
298 |
log.info("startTime" + LocalDateTime.now());
|
| 29757 |
tejbeer |
299 |
|
| 32048 |
tejbeer |
300 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
301 |
propertiesDetails.put("checkfocusedModelInPartnerStock", "0");
|
|
|
302 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
303 |
|
| 32048 |
tejbeer |
304 |
scheduledTasks.checkfocusedModelInPartnerStock();
|
|
|
305 |
propertiesDetails.put("checkfocusedModelInPartnerStock", "1");
|
|
|
306 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 25721 |
tejbeer |
307 |
|
| 32048 |
tejbeer |
308 |
log.info("endTime" + LocalDateTime.now());
|
|
|
309 |
}
|
| 28205 |
tejbeer |
310 |
|
| 32048 |
tejbeer |
311 |
@Scheduled(cron = "0 0 8,10,12,14,16,18,20 * * *")
|
|
|
312 |
public void notifyLead() throws Throwable {
|
| 29757 |
tejbeer |
313 |
|
| 32048 |
tejbeer |
314 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
315 |
propertiesDetails.put("notifyLead", "0");
|
|
|
316 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
317 |
|
| 32048 |
tejbeer |
318 |
scheduledTasks.notifyLead();
|
| 29757 |
tejbeer |
319 |
|
| 32048 |
tejbeer |
320 |
propertiesDetails.put("notifyLead", "1");
|
|
|
321 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
322 |
|
| 32048 |
tejbeer |
323 |
// scheduledTasks.notifyVisits();
|
|
|
324 |
}
|
| 25721 |
tejbeer |
325 |
|
| 32048 |
tejbeer |
326 |
// No longer scheduled
|
|
|
327 |
// @Scheduled(cron = "0 0 1 * * *")
|
|
|
328 |
public void fetchImeiActivation() throws Throwable {
|
|
|
329 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
330 |
propertiesDetails.put("fetchImeiActivation", "0");
|
|
|
331 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
332 |
|
| 32048 |
tejbeer |
333 |
runOnceTasks.fetchImeiActivation(0);
|
| 29757 |
tejbeer |
334 |
|
| 32048 |
tejbeer |
335 |
propertiesDetails.put("fetchImeiActivation", "1");
|
|
|
336 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
337 |
|
| 32048 |
tejbeer |
338 |
}
|
| 26790 |
tejbeer |
339 |
|
| 32411 |
amit.gupta |
340 |
@Scheduled(cron = "0 0 7 * * *")
|
|
|
341 |
//Send all lead owners the report for scheduled followups missed
|
|
|
342 |
public void sendUnscheduledFollowUpMail() throws Exception {
|
|
|
343 |
scheduledTasks.sendUnscheduledFollowUpMail();
|
|
|
344 |
}
|
|
|
345 |
|
| 32048 |
tejbeer |
346 |
@Scheduled(cron = "0 0 1 * * *")
|
|
|
347 |
public void checkValidateReferral() throws Throwable {
|
|
|
348 |
log.info("startTime" + LocalDateTime.now());
|
|
|
349 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
350 |
propertiesDetails.put("checkValidateReferral", "0");
|
|
|
351 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
352 |
|
| 32048 |
tejbeer |
353 |
scheduledTasks.checkValidateReferral();
|
| 29757 |
tejbeer |
354 |
|
| 32048 |
tejbeer |
355 |
propertiesDetails.put("checkValidateReferral", "1");
|
|
|
356 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 26790 |
tejbeer |
357 |
|
| 32048 |
tejbeer |
358 |
log.info("endTime" + LocalDateTime.now());
|
|
|
359 |
}
|
| 26790 |
tejbeer |
360 |
|
| 32048 |
tejbeer |
361 |
// @Scheduled(cron = "0 0 8 * * *")
|
|
|
362 |
public void partnerProblemAlert() throws Throwable {
|
|
|
363 |
log.info("startTime" + LocalDateTime.now());
|
|
|
364 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
365 |
propertiesDetails.put("partnerProblemAlert", "0");
|
|
|
366 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
367 |
|
| 32048 |
tejbeer |
368 |
scheduledTasks.partnerProblemAlert();
|
|
|
369 |
propertiesDetails.put("partnerProblemAlert", "1");
|
|
|
370 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
371 |
|
| 32048 |
tejbeer |
372 |
log.info("endTime" + LocalDateTime.now());
|
|
|
373 |
}
|
| 28921 |
tejbeer |
374 |
|
| 32048 |
tejbeer |
375 |
/*
|
|
|
376 |
* @Scheduled(cron = "0 30 10 * * MON-SAT") public void
|
|
|
377 |
* sendMorningAttendanceAlert() throws Throwable { log.info("startTime" +
|
|
|
378 |
* LocalDateTime.now()); LinkedHashMap<String, String> propertiesDetails = new
|
|
|
379 |
* LinkedHashMap<>(); propertiesDetails.put("sendMorningAttendanceAlert", "0");
|
|
|
380 |
* writeToPropertiesFile.saveParamChanges(propertiesDetails,
|
|
|
381 |
* nagiosCronPropertiesFile);
|
| 32507 |
amit.gupta |
382 |
*
|
| 32048 |
tejbeer |
383 |
* scheduledTasks.sendAttendanceMorningAlert();
|
|
|
384 |
* propertiesDetails.put("sendMorningAttendanceAlert", "1");
|
|
|
385 |
* writeToPropertiesFile.saveParamChanges(propertiesDetails,
|
|
|
386 |
* nagiosCronPropertiesFile);
|
| 32507 |
amit.gupta |
387 |
*
|
| 32048 |
tejbeer |
388 |
* log.info("endTime" + LocalDateTime.now()); }
|
| 32507 |
amit.gupta |
389 |
*
|
| 32048 |
tejbeer |
390 |
* @Scheduled(cron = "0 30 20 * * MON-SAT") public void
|
|
|
391 |
* sendEveningAttendanceAlert() throws Throwable { log.info("startTime" +
|
|
|
392 |
* LocalDateTime.now()); LinkedHashMap<String, String> propertiesDetails = new
|
|
|
393 |
* LinkedHashMap<>(); propertiesDetails.put("sendEveningAttendanceAlert", "0");
|
|
|
394 |
* writeToPropertiesFile.saveParamChanges(propertiesDetails,
|
|
|
395 |
* nagiosCronPropertiesFile);
|
| 32507 |
amit.gupta |
396 |
*
|
| 32048 |
tejbeer |
397 |
* scheduledTasks.sendAttendanceEveningAlert();
|
|
|
398 |
* propertiesDetails.put("sendEveningAttendanceAlert", "1");
|
|
|
399 |
* writeToPropertiesFile.saveParamChanges(propertiesDetails,
|
|
|
400 |
* nagiosCronPropertiesFile);
|
| 32507 |
amit.gupta |
401 |
*
|
| 32048 |
tejbeer |
402 |
* log.info("endTime" + LocalDateTime.now()); }
|
|
|
403 |
*/
|
| 29673 |
manish |
404 |
|
| 32048 |
tejbeer |
405 |
@Scheduled(cron = "0 0 7 * * *")
|
|
|
406 |
public void onboardingEventDelays() throws Throwable {
|
|
|
407 |
log.info("startTime" + LocalDateTime.now());
|
| 29757 |
tejbeer |
408 |
|
| 32048 |
tejbeer |
409 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
410 |
propertiesDetails.put("onboardingEventDelays", "0");
|
|
|
411 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
412 |
|
| 32048 |
tejbeer |
413 |
onBoardingRelatedSchelduleTask.onboardingEventDelays();
|
| 29757 |
tejbeer |
414 |
|
| 32048 |
tejbeer |
415 |
propertiesDetails.put("onboardingEventDelays", "1");
|
|
|
416 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
417 |
|
| 32048 |
tejbeer |
418 |
log.info("endTime" + LocalDateTime.now());
|
|
|
419 |
}
|
| 28921 |
tejbeer |
420 |
|
| 32048 |
tejbeer |
421 |
@Scheduled(cron = "0 0 8 * * *")
|
|
|
422 |
public void brandingAlert() throws Throwable {
|
|
|
423 |
log.info("startTime" + LocalDateTime.now());
|
|
|
424 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
425 |
propertiesDetails.put("brandingAlert", "0");
|
|
|
426 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
427 |
|
| 32048 |
tejbeer |
428 |
onBoardingRelatedSchelduleTask.brandingAlert();
|
|
|
429 |
propertiesDetails.put("brandingAlert", "1");
|
|
|
430 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
431 |
|
| 32048 |
tejbeer |
432 |
log.info("endTime" + LocalDateTime.now());
|
|
|
433 |
}
|
| 28921 |
tejbeer |
434 |
|
| 32048 |
tejbeer |
435 |
@Scheduled(cron = "0 0 8 * * *")
|
|
|
436 |
public void advancePaymentPendingAlert() throws Throwable {
|
|
|
437 |
log.info("startTime" + LocalDateTime.now());
|
| 29757 |
tejbeer |
438 |
|
| 32048 |
tejbeer |
439 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
440 |
propertiesDetails.put("advancePaymentPendingAlert", "0");
|
|
|
441 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
442 |
|
| 32048 |
tejbeer |
443 |
onBoardingRelatedSchelduleTask.advancePaymentPendingAlert();
|
|
|
444 |
propertiesDetails.put("advancePaymentPendingAlert", "1");
|
|
|
445 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
446 |
|
| 32048 |
tejbeer |
447 |
log.info("endTime" + LocalDateTime.now());
|
|
|
448 |
}
|
| 28921 |
tejbeer |
449 |
|
| 32048 |
tejbeer |
450 |
@Scheduled(cron = "0 0 8 * * *")
|
|
|
451 |
public void fullPaymentPendingAlert() throws Throwable {
|
|
|
452 |
log.info("startTime" + LocalDateTime.now());
|
| 29757 |
tejbeer |
453 |
|
| 32048 |
tejbeer |
454 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
455 |
propertiesDetails.put("fullPaymentPendingAlert", "0");
|
|
|
456 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
457 |
|
| 32048 |
tejbeer |
458 |
onBoardingRelatedSchelduleTask.fullPaymentPendingAlert();
|
| 29757 |
tejbeer |
459 |
|
| 32048 |
tejbeer |
460 |
propertiesDetails.put("fullPaymentPendingAlert", "1");
|
|
|
461 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
462 |
|
| 32048 |
tejbeer |
463 |
log.info("endTime" + LocalDateTime.now());
|
|
|
464 |
}
|
| 28921 |
tejbeer |
465 |
|
| 32048 |
tejbeer |
466 |
@Scheduled(cron = "0 0 9 * * *")
|
|
|
467 |
public void advancePaymentPendinglegalAlert() throws Throwable {
|
|
|
468 |
log.info("startTime" + LocalDateTime.now());
|
|
|
469 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
470 |
propertiesDetails.put("advancePaymentPendinglegalAlert", "0");
|
|
|
471 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
472 |
|
| 32048 |
tejbeer |
473 |
onBoardingRelatedSchelduleTask.advancePaymentPendinglegalAlert();
|
| 29757 |
tejbeer |
474 |
|
| 32048 |
tejbeer |
475 |
propertiesDetails.put("advancePaymentPendinglegalAlert", "1");
|
|
|
476 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
477 |
|
| 32048 |
tejbeer |
478 |
log.info("endTime" + LocalDateTime.now());
|
|
|
479 |
}
|
| 28963 |
tejbeer |
480 |
|
| 32048 |
tejbeer |
481 |
@Scheduled(cron = "0 */5 * * * *")
|
|
|
482 |
public void onBoardingCompleteEventEmail() throws Throwable {
|
|
|
483 |
log.info("startTime" + LocalDateTime.now());
|
|
|
484 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
485 |
propertiesDetails.put("onBoardingCompleteEventEmail", "0");
|
|
|
486 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
487 |
|
| 32048 |
tejbeer |
488 |
onBoardingRelatedSchelduleTask.onBoardingCompleteEventEmail();
|
|
|
489 |
propertiesDetails.put("onBoardingCompleteEventEmail", "1");
|
|
|
490 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
491 |
|
| 32048 |
tejbeer |
492 |
log.info("endTime" + LocalDateTime.now());
|
|
|
493 |
}
|
| 29040 |
tejbeer |
494 |
|
| 32048 |
tejbeer |
495 |
@Scheduled(cron = "0 */5 * * * *")
|
|
|
496 |
public void updateSaholicCISTable() throws Throwable {
|
|
|
497 |
log.info("updateSaholicCISTable startTime" + LocalDateTime.now());
|
|
|
498 |
runOnceTasks.updateSaholicCISTable();
|
|
|
499 |
log.info("updateSaholicCISTable endTime" + LocalDateTime.now());
|
|
|
500 |
}
|
| 30667 |
amit.gupta |
501 |
|
| 32048 |
tejbeer |
502 |
@Scheduled(fixedDelay = 30 * 60 * 1000, initialDelay = 15 * 60 * 1000)
|
|
|
503 |
public void fetchPartnerStat() throws Throwable {
|
|
|
504 |
scheduledTasks.fetchParnterStats();
|
|
|
505 |
}
|
| 30390 |
amit.gupta |
506 |
|
| 32048 |
tejbeer |
507 |
@Scheduled(cron = "0 0 9 * * *")
|
|
|
508 |
public void storeTimelinePromoterPending() throws Throwable {
|
|
|
509 |
log.info("startTime" + LocalDateTime.now());
|
| 29757 |
tejbeer |
510 |
|
| 32048 |
tejbeer |
511 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
512 |
propertiesDetails.put("storeTimelinePromoterPending", "0");
|
|
|
513 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
514 |
|
| 32048 |
tejbeer |
515 |
onBoardingRelatedSchelduleTask.storeTimelinePromoterPending();
|
|
|
516 |
propertiesDetails.put("storeTimelinePromoterPending", "1");
|
|
|
517 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
518 |
|
| 32048 |
tejbeer |
519 |
log.info("endTime" + LocalDateTime.now());
|
|
|
520 |
}
|
| 29668 |
tejbeer |
521 |
|
| 32048 |
tejbeer |
522 |
@Scheduled(cron = "0 0 23 * * *")
|
| 32214 |
jai.hind |
523 |
public void checkItelImeiActivationNew() throws Throwable {
|
|
|
524 |
log.info("startTime" + LocalDate.now());
|
|
|
525 |
|
|
|
526 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
527 |
propertiesDetails.put("checkItelImeiActivationNew", "0");
|
|
|
528 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
529 |
log.info("startTimecheckItelImeiActivation" + LocalDate.now());
|
|
|
530 |
scheduledTasks.checkItelImeiActivationNew(LocalDate.now(), 90);
|
|
|
531 |
long secs = (new Date().getTime()) / 1000;
|
|
|
532 |
log.info("endTimecheckItelImeiActivation" + LocalDate.now());
|
|
|
533 |
propertiesDetails.put("checkItelImeiActivationNew", "1");
|
|
|
534 |
propertiesDetails.put("itelDate", Long.toString(secs));
|
|
|
535 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
536 |
|
|
|
537 |
}
|
|
|
538 |
|
|
|
539 |
|
| 32048 |
tejbeer |
540 |
@Scheduled(fixedDelay = 60 * 1000)
|
|
|
541 |
public void vivoImeiActivation() throws Throwable {
|
|
|
542 |
log.info("startTimevivoImeiActivation" + LocalDateTime.now());
|
| 29757 |
tejbeer |
543 |
|
| 32048 |
tejbeer |
544 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
545 |
propertiesDetails.put("vivoImeiActivation", "0");
|
|
|
546 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
547 |
|
| 32048 |
tejbeer |
548 |
scheduledTasks.checkImeiActivation();
|
|
|
549 |
long secs = (new Date().getTime()) / 1000;
|
|
|
550 |
log.info("endTimevivoImeiActivation" + LocalDateTime.now());
|
|
|
551 |
propertiesDetails.put("vivoImeiActivation", "1");
|
| 29757 |
tejbeer |
552 |
|
| 32048 |
tejbeer |
553 |
propertiesDetails.put("vivoDate", Long.toString(secs));
|
|
|
554 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
555 |
|
| 32048 |
tejbeer |
556 |
}
|
| 29255 |
tejbeer |
557 |
|
| 32048 |
tejbeer |
558 |
@Scheduled(cron = "0 0 8 * * *")
|
|
|
559 |
public void reviewUncontactablePartner() throws Throwable {
|
|
|
560 |
log.info("startTime" + LocalDateTime.now());
|
| 30421 |
tejbeer |
561 |
|
| 32048 |
tejbeer |
562 |
scheduledTasks.reviewUncontactablePartner();
|
| 30421 |
tejbeer |
563 |
|
| 32048 |
tejbeer |
564 |
}
|
| 30421 |
tejbeer |
565 |
|
| 32048 |
tejbeer |
566 |
@Autowired
|
|
|
567 |
private StandAlone standAlone;
|
| 30352 |
amit.gupta |
568 |
|
| 32147 |
amit.gupta |
569 |
@Scheduled(fixedDelay = 60 * 1000)
|
| 32048 |
tejbeer |
570 |
public void oppo() throws Throwable {
|
|
|
571 |
standAlone.checkOppoImeiStatus();
|
|
|
572 |
}
|
| 30352 |
amit.gupta |
573 |
|
| 32048 |
tejbeer |
574 |
@Scheduled(cron = "0 0 * * * *")
|
|
|
575 |
public void markBlueDartOrderDelivered() throws Throwable {
|
|
|
576 |
log.info("startTime" + LocalDateTime.now());
|
|
|
577 |
scheduledTasks.markBlueDartOrderDelivered();
|
|
|
578 |
log.info("endTime" + LocalDateTime.now());
|
|
|
579 |
}
|
| 31117 |
tejbeer |
580 |
|
| 32048 |
tejbeer |
581 |
@Scheduled(cron = "0 0 * * * *")
|
|
|
582 |
public void markDelhiveryOrderDelivered() throws Throwable {
|
|
|
583 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
584 |
propertiesDetails.put("markDelhiveryOrderDelivered", "0");
|
|
|
585 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
586 |
|
| 32048 |
tejbeer |
587 |
log.info("startTime" + LocalDateTime.now());
|
|
|
588 |
scheduledTasks.markDelhiveryOrderDelivered();
|
|
|
589 |
propertiesDetails.put("markDelhiveryOrderDelivered", "1");
|
|
|
590 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29673 |
manish |
591 |
|
| 32048 |
tejbeer |
592 |
log.info("endTime" + LocalDateTime.now());
|
|
|
593 |
}
|
| 29308 |
tejbeer |
594 |
|
| 32048 |
tejbeer |
595 |
@Scheduled(cron = "0 0 4 * * *")
|
|
|
596 |
public void processPriceDrop() throws Throwable {
|
|
|
597 |
scheduledTasks.processPriceDrop();
|
|
|
598 |
}
|
| 30637 |
amit.gupta |
599 |
|
| 32048 |
tejbeer |
600 |
@Scheduled(cron = "0 0 0 * * *")
|
|
|
601 |
public void calculateInterestAccured() throws Throwable {
|
|
|
602 |
scheduledTasks.calculateInterestAccured();
|
|
|
603 |
}
|
| 30859 |
tejbeer |
604 |
|
| 32117 |
tejbeer |
605 |
// @Scheduled(cron = "0 */5 2-22 * * *")
|
| 32507 |
amit.gupta |
606 |
//@Scheduled(fixedDelay = 5 * 60 * 1000)
|
|
|
607 |
@Scheduled(cron = "0 0 23 * * *")
|
| 32048 |
tejbeer |
608 |
public void loanSettlement() throws Throwable {
|
|
|
609 |
scheduledTasks.loanSettlement();
|
|
|
610 |
}
|
| 30859 |
tejbeer |
611 |
|
| 32048 |
tejbeer |
612 |
@Scheduled(cron = "0 */15 * * * *")
|
|
|
613 |
public void ccAvenueSettlement() throws Throwable {
|
|
|
614 |
scheduledTasks.settleCCAvePayments();
|
|
|
615 |
}
|
| 31332 |
amit.gupta |
616 |
|
| 32048 |
tejbeer |
617 |
@Scheduled(cron = "0 0 6 * * *")
|
|
|
618 |
public void dailyLoanAlert() throws Throwable {
|
|
|
619 |
scheduledTasks.dailyLoanAlert();
|
|
|
620 |
}
|
| 30896 |
amit.gupta |
621 |
|
| 32165 |
amit.gupta |
622 |
//Look out for imeis that have activation pending based of sale and mark create new SIO out of them
|
| 32048 |
tejbeer |
623 |
@Scheduled(cron = "0 0 1 * * *")
|
|
|
624 |
public void processActivatedImeisForSchemes() throws Throwable {
|
|
|
625 |
scheduledTasks.processActivatedImeisForSchemes();
|
|
|
626 |
}
|
| 30913 |
tejbeer |
627 |
|
| 32048 |
tejbeer |
628 |
@Scheduled(cron = "0 0 7 * * *")
|
|
|
629 |
public void updatePartnerLimit() throws Throwable {
|
|
|
630 |
scheduledTasks.updatePartnerLimit();
|
|
|
631 |
}
|
| 30929 |
tejbeer |
632 |
|
| 32048 |
tejbeer |
633 |
@Scheduled(cron = "0 0 7 * * *")
|
|
|
634 |
public void alertForDueDate() throws Throwable {
|
|
|
635 |
scheduledTasks.alertForDueDate();
|
|
|
636 |
}
|
| 30936 |
tejbeer |
637 |
|
| 32048 |
tejbeer |
638 |
@Scheduled(cron = "0 0 8 * * *")
|
|
|
639 |
public void notifyLoanDueDateCross() throws Throwable {
|
|
|
640 |
scheduledTasks.notifyLoanDueDateCross();
|
|
|
641 |
}
|
| 30936 |
tejbeer |
642 |
|
| 32048 |
tejbeer |
643 |
@Scheduled(cron = "0 0 9 * * *")
|
|
|
644 |
public void notifyDefaultLoans() throws Throwable {
|
|
|
645 |
scheduledTasks.notifyDefaultLoans();
|
|
|
646 |
}
|
| 30936 |
tejbeer |
647 |
|
| 32048 |
tejbeer |
648 |
@Scheduled(cron = "0 0 23 * * *")
|
|
|
649 |
public void hygineAlertForInternalTeam() throws Throwable {
|
|
|
650 |
scheduledTasks.hygineAlertForInternalTeam();
|
| 31206 |
tejbeer |
651 |
|
| 32048 |
tejbeer |
652 |
}
|
| 31206 |
tejbeer |
653 |
|
| 32048 |
tejbeer |
654 |
@Scheduled(cron = "0 0 23 * * *")
|
|
|
655 |
public void hygineAlertForPartner() throws Throwable {
|
|
|
656 |
scheduledTasks.hygineAlertForPartner();
|
| 31206 |
tejbeer |
657 |
|
| 32048 |
tejbeer |
658 |
}
|
| 31206 |
tejbeer |
659 |
|
| 32048 |
tejbeer |
660 |
@Scheduled(cron = "0 0 0 * * MON")
|
|
|
661 |
public void monthlyTargetForPartner() throws Throwable {
|
|
|
662 |
scheduledTasks.monthlyTargetForPartner();
|
| 31249 |
tejbeer |
663 |
|
| 32048 |
tejbeer |
664 |
}
|
| 31249 |
tejbeer |
665 |
|
| 32048 |
tejbeer |
666 |
@Scheduled(cron = "0 0 0 * * MON")
|
|
|
667 |
public void monthlyTargetForInternalTeam() throws Throwable {
|
|
|
668 |
scheduledTasks.monthlyTargetForInternalTeam();
|
| 31249 |
tejbeer |
669 |
|
| 32048 |
tejbeer |
670 |
}
|
| 31612 |
tejbeer |
671 |
|
| 32048 |
tejbeer |
672 |
@Scheduled(cron = "0 0 6 * * *")
|
|
|
673 |
public void sendSamsungRebilling() throws Throwable {
|
|
|
674 |
scheduledTasks.sendMailForSamsungRebilling();
|
|
|
675 |
}
|
| 31931 |
amit.gupta |
676 |
|
| 32048 |
tejbeer |
677 |
@Scheduled(cron = "0 10 8 * * *")
|
|
|
678 |
public void sendMailForAgeingAlert() throws Throwable {
|
|
|
679 |
scheduledTasks.sendMailForAgeingAlert();
|
|
|
680 |
}
|
|
|
681 |
|
|
|
682 |
|
|
|
683 |
@Scheduled(cron = "0 0 8 * * *")
|
|
|
684 |
public void sendFilteredRetailerPerformance() throws Throwable {
|
|
|
685 |
scheduledTasks.sendFilteredRetailerPerformance();
|
|
|
686 |
}
|
|
|
687 |
/*
|
|
|
688 |
* @Scheduled(cron = "0 0 9 * * *") public void onBoardingDocumentsPending()
|
|
|
689 |
* throws Throwable { log.info("startTime" + LocalDateTime.now());
|
|
|
690 |
* onBoardingRelatedSchelduleTask.onBoardingDocumentsPending();
|
|
|
691 |
* log.info("endTime" + LocalDateTime.now()); }
|
|
|
692 |
*/
|
| 23756 |
amit.gupta |
693 |
}
|