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