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