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