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