| 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 |
|
| 26943 |
amit.gupta |
185 |
@Scheduled(cron = "0 0 12,18,23 ? * *")
|
| 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 |
}
|
| 31256 |
amit.gupta |
265 |
//No longer needed
|
|
|
266 |
//@Scheduled(cron = "0 */10 * * * *")
|
| 27686 |
amit.gupta |
267 |
public void attachToffeeInvoices() throws Throwable {
|
| 29757 |
tejbeer |
268 |
|
| 29673 |
manish |
269 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
270 |
propertiesDetails.put("attachToffeeInvoices", "0");
|
|
|
271 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
272 |
|
| 27686 |
amit.gupta |
273 |
scheduledTasks.attachToffeeInvoices();
|
| 29757 |
tejbeer |
274 |
|
| 29673 |
manish |
275 |
propertiesDetails.put("attachToffeeInvoices", "1");
|
|
|
276 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
277 |
|
| 27686 |
amit.gupta |
278 |
}
|
| 24841 |
govind |
279 |
|
| 26283 |
tejbeer |
280 |
@Scheduled(cron = "0 0 5 * * *")
|
|
|
281 |
public void ticketClosed() throws Throwable {
|
|
|
282 |
|
| 29673 |
manish |
283 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
284 |
propertiesDetails.put("ticketClosed", "0");
|
|
|
285 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
286 |
|
| 26283 |
tejbeer |
287 |
scheduledTasks.ticketClosed();
|
| 29757 |
tejbeer |
288 |
|
| 29673 |
manish |
289 |
propertiesDetails.put("ticketClosed", "1");
|
|
|
290 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 26283 |
tejbeer |
291 |
|
|
|
292 |
}
|
|
|
293 |
|
| 29757 |
tejbeer |
294 |
@Scheduled(cron = "0 0 8 * * *")
|
| 25721 |
tejbeer |
295 |
public void checkfocusedModelInPartnerStock() throws Throwable {
|
|
|
296 |
log.info("startTime" + LocalDateTime.now());
|
| 29757 |
tejbeer |
297 |
|
| 29673 |
manish |
298 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
299 |
propertiesDetails.put("checkfocusedModelInPartnerStock", "0");
|
|
|
300 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
301 |
|
| 25721 |
tejbeer |
302 |
scheduledTasks.checkfocusedModelInPartnerStock();
|
| 29673 |
manish |
303 |
propertiesDetails.put("checkfocusedModelInPartnerStock", "1");
|
|
|
304 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 25721 |
tejbeer |
305 |
|
|
|
306 |
log.info("endTime" + LocalDateTime.now());
|
|
|
307 |
}
|
| 28205 |
tejbeer |
308 |
|
| 26083 |
amit.gupta |
309 |
@Scheduled(cron = "0 0 8,10,12,14,16,18,20 * * *")
|
| 25909 |
amit.gupta |
310 |
public void notifyLead() throws Throwable {
|
| 29757 |
tejbeer |
311 |
|
| 29673 |
manish |
312 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
313 |
propertiesDetails.put("notifyLead", "0");
|
|
|
314 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
315 |
|
| 25909 |
amit.gupta |
316 |
scheduledTasks.notifyLead();
|
| 29757 |
tejbeer |
317 |
|
| 29673 |
manish |
318 |
propertiesDetails.put("notifyLead", "1");
|
|
|
319 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
320 |
|
| 28205 |
tejbeer |
321 |
// scheduledTasks.notifyVisits();
|
| 25909 |
amit.gupta |
322 |
}
|
| 25721 |
tejbeer |
323 |
|
| 31206 |
tejbeer |
324 |
// No longer scheduled
|
|
|
325 |
// @Scheduled(cron = "0 0 1 * * *")
|
| 26214 |
amit.gupta |
326 |
public void fetchImeiActivation() throws Throwable {
|
| 29673 |
manish |
327 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
328 |
propertiesDetails.put("fetchImeiActivation", "0");
|
|
|
329 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
330 |
|
| 26408 |
amit.gupta |
331 |
runOnceTasks.fetchImeiActivation(0);
|
| 29757 |
tejbeer |
332 |
|
| 29673 |
manish |
333 |
propertiesDetails.put("fetchImeiActivation", "1");
|
|
|
334 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
335 |
|
| 26214 |
amit.gupta |
336 |
}
|
| 26790 |
tejbeer |
337 |
|
|
|
338 |
@Scheduled(cron = "0 0 1 * * *")
|
|
|
339 |
public void checkValidateReferral() throws Throwable {
|
|
|
340 |
log.info("startTime" + LocalDateTime.now());
|
| 29673 |
manish |
341 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
342 |
propertiesDetails.put("checkValidateReferral", "0");
|
|
|
343 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
344 |
|
| 26790 |
tejbeer |
345 |
scheduledTasks.checkValidateReferral();
|
| 29757 |
tejbeer |
346 |
|
| 29673 |
manish |
347 |
propertiesDetails.put("checkValidateReferral", "1");
|
|
|
348 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 26790 |
tejbeer |
349 |
|
|
|
350 |
log.info("endTime" + LocalDateTime.now());
|
|
|
351 |
}
|
|
|
352 |
|
| 28921 |
tejbeer |
353 |
// @Scheduled(cron = "0 0 8 * * *")
|
| 28205 |
tejbeer |
354 |
public void partnerProblemAlert() throws Throwable {
|
|
|
355 |
log.info("startTime" + LocalDateTime.now());
|
| 29673 |
manish |
356 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
357 |
propertiesDetails.put("partnerProblemAlert", "0");
|
|
|
358 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
359 |
|
| 28205 |
tejbeer |
360 |
scheduledTasks.partnerProblemAlert();
|
| 29673 |
manish |
361 |
propertiesDetails.put("partnerProblemAlert", "1");
|
|
|
362 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
363 |
|
| 28205 |
tejbeer |
364 |
log.info("endTime" + LocalDateTime.now());
|
|
|
365 |
}
|
| 28921 |
tejbeer |
366 |
|
| 31532 |
amit.gupta |
367 |
/*@Scheduled(cron = "0 30 10 * * MON-SAT")
|
| 28783 |
amit.gupta |
368 |
public void sendMorningAttendanceAlert() throws Throwable {
|
|
|
369 |
log.info("startTime" + LocalDateTime.now());
|
| 29673 |
manish |
370 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
371 |
propertiesDetails.put("sendMorningAttendanceAlert", "0");
|
|
|
372 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
373 |
|
| 28783 |
amit.gupta |
374 |
scheduledTasks.sendAttendanceMorningAlert();
|
| 29673 |
manish |
375 |
propertiesDetails.put("sendMorningAttendanceAlert", "1");
|
|
|
376 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
377 |
|
| 28783 |
amit.gupta |
378 |
log.info("endTime" + LocalDateTime.now());
|
|
|
379 |
}
|
| 28921 |
tejbeer |
380 |
|
| 28788 |
amit.gupta |
381 |
@Scheduled(cron = "0 30 20 * * MON-SAT")
|
| 28783 |
amit.gupta |
382 |
public void sendEveningAttendanceAlert() throws Throwable {
|
|
|
383 |
log.info("startTime" + LocalDateTime.now());
|
| 29673 |
manish |
384 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
385 |
propertiesDetails.put("sendEveningAttendanceAlert", "0");
|
|
|
386 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
387 |
|
| 28783 |
amit.gupta |
388 |
scheduledTasks.sendAttendanceEveningAlert();
|
| 29673 |
manish |
389 |
propertiesDetails.put("sendEveningAttendanceAlert", "1");
|
|
|
390 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
391 |
|
| 28783 |
amit.gupta |
392 |
log.info("endTime" + LocalDateTime.now());
|
| 31532 |
amit.gupta |
393 |
}*/
|
| 28921 |
tejbeer |
394 |
|
|
|
395 |
@Scheduled(cron = "0 0 7 * * *")
|
|
|
396 |
public void onboardingEventDelays() throws Throwable {
|
|
|
397 |
log.info("startTime" + LocalDateTime.now());
|
| 29757 |
tejbeer |
398 |
|
| 29673 |
manish |
399 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
400 |
propertiesDetails.put("onboardingEventDelays", "0");
|
|
|
401 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
402 |
|
| 28921 |
tejbeer |
403 |
onBoardingRelatedSchelduleTask.onboardingEventDelays();
|
| 29757 |
tejbeer |
404 |
|
| 29673 |
manish |
405 |
propertiesDetails.put("onboardingEventDelays", "1");
|
|
|
406 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
407 |
|
| 28921 |
tejbeer |
408 |
log.info("endTime" + LocalDateTime.now());
|
|
|
409 |
}
|
|
|
410 |
|
|
|
411 |
@Scheduled(cron = "0 0 8 * * *")
|
|
|
412 |
public void brandingAlert() throws Throwable {
|
|
|
413 |
log.info("startTime" + LocalDateTime.now());
|
| 29673 |
manish |
414 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
415 |
propertiesDetails.put("brandingAlert", "0");
|
|
|
416 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
417 |
|
| 28921 |
tejbeer |
418 |
onBoardingRelatedSchelduleTask.brandingAlert();
|
| 29673 |
manish |
419 |
propertiesDetails.put("brandingAlert", "1");
|
|
|
420 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
421 |
|
| 28921 |
tejbeer |
422 |
log.info("endTime" + LocalDateTime.now());
|
|
|
423 |
}
|
|
|
424 |
|
|
|
425 |
@Scheduled(cron = "0 0 8 * * *")
|
|
|
426 |
public void advancePaymentPendingAlert() throws Throwable {
|
|
|
427 |
log.info("startTime" + LocalDateTime.now());
|
| 29757 |
tejbeer |
428 |
|
| 29673 |
manish |
429 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
430 |
propertiesDetails.put("advancePaymentPendingAlert", "0");
|
|
|
431 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
432 |
|
| 28921 |
tejbeer |
433 |
onBoardingRelatedSchelduleTask.advancePaymentPendingAlert();
|
| 29673 |
manish |
434 |
propertiesDetails.put("advancePaymentPendingAlert", "1");
|
|
|
435 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
436 |
|
| 28921 |
tejbeer |
437 |
log.info("endTime" + LocalDateTime.now());
|
|
|
438 |
}
|
|
|
439 |
|
|
|
440 |
@Scheduled(cron = "0 0 8 * * *")
|
|
|
441 |
public void fullPaymentPendingAlert() throws Throwable {
|
|
|
442 |
log.info("startTime" + LocalDateTime.now());
|
| 29757 |
tejbeer |
443 |
|
| 29673 |
manish |
444 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
445 |
propertiesDetails.put("fullPaymentPendingAlert", "0");
|
|
|
446 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
447 |
|
| 28921 |
tejbeer |
448 |
onBoardingRelatedSchelduleTask.fullPaymentPendingAlert();
|
| 29757 |
tejbeer |
449 |
|
| 29673 |
manish |
450 |
propertiesDetails.put("fullPaymentPendingAlert", "1");
|
|
|
451 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
452 |
|
| 28921 |
tejbeer |
453 |
log.info("endTime" + LocalDateTime.now());
|
|
|
454 |
}
|
|
|
455 |
|
| 28963 |
tejbeer |
456 |
@Scheduled(cron = "0 0 9 * * *")
|
|
|
457 |
public void advancePaymentPendinglegalAlert() throws Throwable {
|
|
|
458 |
log.info("startTime" + LocalDateTime.now());
|
| 29673 |
manish |
459 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
460 |
propertiesDetails.put("advancePaymentPendinglegalAlert", "0");
|
|
|
461 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
462 |
|
| 28963 |
tejbeer |
463 |
onBoardingRelatedSchelduleTask.advancePaymentPendinglegalAlert();
|
| 29757 |
tejbeer |
464 |
|
| 29673 |
manish |
465 |
propertiesDetails.put("advancePaymentPendinglegalAlert", "1");
|
|
|
466 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
467 |
|
| 28963 |
tejbeer |
468 |
log.info("endTime" + LocalDateTime.now());
|
|
|
469 |
}
|
|
|
470 |
|
| 29035 |
tejbeer |
471 |
@Scheduled(cron = "0 */5 * * * *")
|
|
|
472 |
public void onBoardingCompleteEventEmail() throws Throwable {
|
|
|
473 |
log.info("startTime" + LocalDateTime.now());
|
| 29673 |
manish |
474 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
475 |
propertiesDetails.put("onBoardingCompleteEventEmail", "0");
|
|
|
476 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
477 |
|
| 29035 |
tejbeer |
478 |
onBoardingRelatedSchelduleTask.onBoardingCompleteEventEmail();
|
| 29673 |
manish |
479 |
propertiesDetails.put("onBoardingCompleteEventEmail", "1");
|
|
|
480 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
481 |
|
| 29035 |
tejbeer |
482 |
log.info("endTime" + LocalDateTime.now());
|
|
|
483 |
}
|
| 29040 |
tejbeer |
484 |
|
| 30731 |
amit.gupta |
485 |
@Scheduled(cron = "0 */2 * * * *")
|
| 30667 |
amit.gupta |
486 |
public void updateSaholicCISTable() throws Throwable {
|
|
|
487 |
log.info("startTime" + LocalDateTime.now());
|
|
|
488 |
runOnceTasks.updateSaholicCISTable();
|
|
|
489 |
log.info("endTime" + LocalDateTime.now());
|
|
|
490 |
}
|
|
|
491 |
|
| 30390 |
amit.gupta |
492 |
@Scheduled(fixedDelay = 30 * 60 * 1000, initialDelay = 15 * 60 * 1000)
|
|
|
493 |
public void fetchPartnerStat() throws Throwable {
|
|
|
494 |
scheduledTasks.fetchParnterStats();
|
|
|
495 |
}
|
|
|
496 |
|
| 29255 |
tejbeer |
497 |
@Scheduled(cron = "0 0 9 * * *")
|
|
|
498 |
public void storeTimelinePromoterPending() throws Throwable {
|
|
|
499 |
log.info("startTime" + LocalDateTime.now());
|
| 29757 |
tejbeer |
500 |
|
| 29673 |
manish |
501 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
502 |
propertiesDetails.put("storeTimelinePromoterPending", "0");
|
|
|
503 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
504 |
|
| 29255 |
tejbeer |
505 |
onBoardingRelatedSchelduleTask.storeTimelinePromoterPending();
|
| 29673 |
manish |
506 |
propertiesDetails.put("storeTimelinePromoterPending", "1");
|
|
|
507 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
508 |
|
| 29255 |
tejbeer |
509 |
log.info("endTime" + LocalDateTime.now());
|
|
|
510 |
}
|
| 29668 |
tejbeer |
511 |
|
| 29467 |
amit.gupta |
512 |
@Scheduled(cron = "0 0 23 * * *")
|
| 29492 |
manish |
513 |
public void checkItelImeiActivation() throws Throwable {
|
|
|
514 |
log.info("startTime" + LocalDate.now());
|
| 29673 |
manish |
515 |
|
|
|
516 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
517 |
propertiesDetails.put("checkItelImeiActivation", "0");
|
|
|
518 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29694 |
manish |
519 |
log.info("startTimecheckItelImeiActivation" + LocalDate.now());
|
| 30837 |
amit.gupta |
520 |
scheduledTasks.checkItelImeiActivation(LocalDate.now(), 90);
|
| 29757 |
tejbeer |
521 |
long secs = (new Date().getTime()) / 1000;
|
| 29694 |
manish |
522 |
log.info("endTimecheckItelImeiActivation" + LocalDate.now());
|
| 29673 |
manish |
523 |
propertiesDetails.put("checkItelImeiActivation", "1");
|
| 29757 |
tejbeer |
524 |
propertiesDetails.put("itelDate", Long.toString(secs));
|
| 29673 |
manish |
525 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
526 |
|
| 29757 |
tejbeer |
527 |
}
|
| 29673 |
manish |
528 |
|
| 29492 |
manish |
529 |
@Scheduled(cron = "0 0 23 * * *")
|
|
|
530 |
public void checkTecnoImeiActivation() throws Throwable {
|
| 29757 |
tejbeer |
531 |
|
| 29673 |
manish |
532 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
533 |
propertiesDetails.put("checkTecnoImeiActivation", "0");
|
|
|
534 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
535 |
|
| 29492 |
manish |
536 |
log.info("startTime" + LocalDate.now());
|
| 29694 |
manish |
537 |
log.info("startTimecheckTecnoImeiActivation" + LocalDate.now());
|
| 30837 |
amit.gupta |
538 |
scheduledTasks.checkTecnoImeiActivation(LocalDate.now(), 90);
|
| 29694 |
manish |
539 |
log.info("endTimecheckTecnoImeiActivation" + LocalDate.now());
|
| 29757 |
tejbeer |
540 |
|
|
|
541 |
long secs = (new Date().getTime()) / 1000;
|
| 29673 |
manish |
542 |
propertiesDetails.put("checkTecnoImeiActivation", "1");
|
| 29691 |
manish |
543 |
propertiesDetails.put("technoDate", Long.toString(secs));
|
| 29673 |
manish |
544 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
| 29757 |
tejbeer |
545 |
|
| 29492 |
manish |
546 |
}
|
| 29668 |
tejbeer |
547 |
|
| 30370 |
amit.gupta |
548 |
@Scheduled(fixedDelay = 60 * 1000)
|
| 29457 |
manish |
549 |
public void vivoImeiActivation() throws Throwable {
|
| 29694 |
manish |
550 |
log.info("startTimevivoImeiActivation" + LocalDateTime.now());
|
| 29757 |
tejbeer |
551 |
|
| 29673 |
manish |
552 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
553 |
propertiesDetails.put("vivoImeiActivation", "0");
|
|
|
554 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
555 |
|
| 29457 |
manish |
556 |
scheduledTasks.checkImeiActivation();
|
| 29757 |
tejbeer |
557 |
long secs = (new Date().getTime()) / 1000;
|
| 29694 |
manish |
558 |
log.info("endTimevivoImeiActivation" + LocalDateTime.now());
|
| 29673 |
manish |
559 |
propertiesDetails.put("vivoImeiActivation", "1");
|
| 29757 |
tejbeer |
560 |
|
| 29691 |
manish |
561 |
propertiesDetails.put("vivoDate", Long.toString(secs));
|
| 29673 |
manish |
562 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
563 |
|
| 29457 |
manish |
564 |
}
|
| 29255 |
tejbeer |
565 |
|
| 30421 |
tejbeer |
566 |
@Scheduled(cron = "0 0 8 * * *")
|
|
|
567 |
public void reviewUncontactablePartner() throws Throwable {
|
|
|
568 |
log.info("startTime" + LocalDateTime.now());
|
|
|
569 |
|
|
|
570 |
scheduledTasks.reviewUncontactablePartner();
|
|
|
571 |
|
|
|
572 |
}
|
|
|
573 |
|
| 30352 |
amit.gupta |
574 |
@Autowired
|
|
|
575 |
private StandAlone standAlone;
|
|
|
576 |
|
| 31257 |
amit.gupta |
577 |
//@Scheduled(fixedDelay = 60 * 1000)
|
| 30352 |
amit.gupta |
578 |
public void oppo() throws Throwable {
|
|
|
579 |
standAlone.checkOppoImeiStatus();
|
|
|
580 |
}
|
|
|
581 |
|
| 29316 |
tejbeer |
582 |
@Scheduled(cron = "0 0 * * * *")
|
| 31117 |
tejbeer |
583 |
public void markBlueDartOrderDelivered() throws Throwable {
|
|
|
584 |
log.info("startTime" + LocalDateTime.now());
|
|
|
585 |
scheduledTasks.markBlueDartOrderDelivered();
|
|
|
586 |
log.info("endTime" + LocalDateTime.now());
|
|
|
587 |
}
|
|
|
588 |
|
|
|
589 |
@Scheduled(cron = "0 0 * * * *")
|
| 29308 |
tejbeer |
590 |
public void markDelhiveryOrderDelivered() throws Throwable {
|
| 29673 |
manish |
591 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
|
|
592 |
propertiesDetails.put("markDelhiveryOrderDelivered", "0");
|
|
|
593 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
594 |
|
| 29308 |
tejbeer |
595 |
log.info("startTime" + LocalDateTime.now());
|
|
|
596 |
scheduledTasks.markDelhiveryOrderDelivered();
|
| 29673 |
manish |
597 |
propertiesDetails.put("markDelhiveryOrderDelivered", "1");
|
|
|
598 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
|
|
599 |
|
| 29308 |
tejbeer |
600 |
log.info("endTime" + LocalDateTime.now());
|
|
|
601 |
}
|
|
|
602 |
|
| 30888 |
amit.gupta |
603 |
@Scheduled(cron = "0 0 4 * * *")
|
| 30637 |
amit.gupta |
604 |
public void processPriceDrop() throws Throwable {
|
|
|
605 |
scheduledTasks.processPriceDrop();
|
|
|
606 |
}
|
|
|
607 |
|
| 30859 |
tejbeer |
608 |
@Scheduled(cron = "0 0 0 * * *")
|
|
|
609 |
public void calculateInterestAccured() throws Throwable {
|
|
|
610 |
scheduledTasks.calculateInterestAccured();
|
|
|
611 |
}
|
|
|
612 |
|
| 31141 |
amit.gupta |
613 |
@Scheduled(cron = "0 */5 2-22 * * *")
|
| 30859 |
tejbeer |
614 |
public void loanSettlement() throws Throwable {
|
|
|
615 |
scheduledTasks.loanSettlement();
|
|
|
616 |
}
|
|
|
617 |
|
| 31332 |
amit.gupta |
618 |
@Scheduled(cron = "0 */15 * * * *")
|
|
|
619 |
public void ccAvenueSettlement() throws Throwable {
|
|
|
620 |
scheduledTasks.settleCCAvePayments();
|
|
|
621 |
}
|
|
|
622 |
|
| 30896 |
amit.gupta |
623 |
@Scheduled(cron = "0 0 6 * * *")
|
| 30859 |
tejbeer |
624 |
public void dailyLoanAlert() throws Throwable {
|
|
|
625 |
scheduledTasks.dailyLoanAlert();
|
|
|
626 |
}
|
| 30896 |
amit.gupta |
627 |
|
|
|
628 |
@Scheduled(cron = "0 0 1 * * *")
|
|
|
629 |
public void processActivatedImeisForSchemes() throws Throwable {
|
|
|
630 |
scheduledTasks.processActivatedImeisForSchemes();
|
|
|
631 |
}
|
| 30913 |
tejbeer |
632 |
|
|
|
633 |
@Scheduled(cron = "0 0 7 * * *")
|
|
|
634 |
public void updatePartnerLimit() throws Throwable {
|
|
|
635 |
scheduledTasks.updatePartnerLimit();
|
|
|
636 |
}
|
| 30929 |
tejbeer |
637 |
|
| 30936 |
tejbeer |
638 |
@Scheduled(cron = "0 0 7 * * *")
|
|
|
639 |
public void alertForDueDate() throws Throwable {
|
|
|
640 |
scheduledTasks.alertForDueDate();
|
|
|
641 |
}
|
|
|
642 |
|
| 30929 |
tejbeer |
643 |
@Scheduled(cron = "0 0 8 * * *")
|
| 30936 |
tejbeer |
644 |
public void notifyLoanDueDateCross() throws Throwable {
|
|
|
645 |
scheduledTasks.notifyLoanDueDateCross();
|
| 30929 |
tejbeer |
646 |
}
|
| 30936 |
tejbeer |
647 |
|
|
|
648 |
@Scheduled(cron = "0 0 9 * * *")
|
|
|
649 |
public void notifyDefaultLoans() throws Throwable {
|
|
|
650 |
scheduledTasks.notifyDefaultLoans();
|
|
|
651 |
}
|
|
|
652 |
|
| 31206 |
tejbeer |
653 |
@Scheduled(cron = "0 0 23 * * *")
|
|
|
654 |
public void hygineAlertForInternalTeam() throws Throwable {
|
|
|
655 |
scheduledTasks.hygineAlertForInternalTeam();
|
|
|
656 |
|
|
|
657 |
}
|
|
|
658 |
|
|
|
659 |
@Scheduled(cron = "0 0 23 * * *")
|
|
|
660 |
public void hygineAlertForPartner() throws Throwable {
|
|
|
661 |
scheduledTasks.hygineAlertForPartner();
|
|
|
662 |
|
|
|
663 |
}
|
|
|
664 |
|
| 31249 |
tejbeer |
665 |
@Scheduled(cron = "0 0 0 * * MON")
|
|
|
666 |
public void monthlyTargetForPartner() throws Throwable {
|
|
|
667 |
scheduledTasks.monthlyTargetForPartner();
|
|
|
668 |
|
|
|
669 |
}
|
|
|
670 |
|
|
|
671 |
@Scheduled(cron = "0 0 0 * * MON")
|
|
|
672 |
public void monthlyTargetForInternalTeam() throws Throwable {
|
|
|
673 |
scheduledTasks.monthlyTargetForInternalTeam();
|
|
|
674 |
|
|
|
675 |
}
|
| 29208 |
tejbeer |
676 |
/*
|
|
|
677 |
* @Scheduled(cron = "0 0 9 * * *") public void onBoardingDocumentsPending()
|
|
|
678 |
* throws Throwable { log.info("startTime" + LocalDateTime.now());
|
|
|
679 |
* onBoardingRelatedSchelduleTask.onBoardingDocumentsPending();
|
|
|
680 |
* log.info("endTime" + LocalDateTime.now()); }
|
|
|
681 |
*/
|
| 23756 |
amit.gupta |
682 |
}
|