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