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