| Line 1... |
Line 1... |
| 1 |
package com.smartdukaan.cron.scheduled;
|
1 |
package com.smartdukaan.cron.scheduled;
|
| 2 |
|
2 |
|
| 3 |
import com.smartdukaan.cron.migrations.RunOnceTasks;
|
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.ambreports.AbmReportSender;
|
4 |
import com.smartdukaan.cron.scheduled.ambreports.AbmReportSender;
|
| 7 |
import com.smartdukaan.cron.scheduled.leadsync.LeadSyncRunner;
|
5 |
import com.smartdukaan.cron.scheduled.leadsync.LeadSyncRunner;
|
| 8 |
import com.smartdukaan.cron.scheduled.ordertracking.OrderTrackingService;
|
6 |
import com.smartdukaan.cron.scheduled.ordertracking.OrderTrackingService;
|
| 9 |
import com.smartdukaan.cron.scheduled.purchaseorder.POScheduler;
|
7 |
import com.smartdukaan.cron.scheduled.purchaseorder.POScheduler;
|
| 10 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
8 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
| Line 48... |
Line 46... |
| 48 |
|
46 |
|
| 49 |
@Autowired
|
47 |
@Autowired
|
| 50 |
private RunOnceTasks runOnceTasks;
|
48 |
private RunOnceTasks runOnceTasks;
|
| 51 |
|
49 |
|
| 52 |
@Autowired
|
50 |
@Autowired
|
| 53 |
NagiosMonitorTasks nagiosMonitorTasks;
|
- |
|
| 54 |
|
- |
|
| 55 |
@Autowired
|
- |
|
| 56 |
private TicketRelatedScheduledTask ticketRelatedScheduledTask;
|
51 |
private TicketRelatedScheduledTask ticketRelatedScheduledTask;
|
| 57 |
|
52 |
|
| 58 |
@Autowired
|
53 |
@Autowired
|
| 59 |
private OnBoardingRelatedSchelduleTask onBoardingRelatedSchelduleTask;
|
54 |
private OnBoardingRelatedSchelduleTask onBoardingRelatedSchelduleTask;
|
| 60 |
|
55 |
|
| 61 |
@Autowired
|
- |
|
| 62 |
private WriteToPropertiesFile writeToPropertiesFile;
|
- |
|
| 63 |
|
- |
|
| 64 |
String nagiosCronPropertiesFile = "/var/log/services/nagios-Cron-Monitoring.properties";
|
- |
|
| 65 |
|
- |
|
| 66 |
@Scheduled(cron = "0 0 2 * * *")
|
56 |
@Scheduled(cron = "0 0 2 * * *")
|
| 67 |
public void processDailySchemes() throws Exception {
|
57 |
public void processDailySchemes() throws Exception {
|
| 68 |
|
58 |
|
| 69 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 70 |
propertiesDetails.put("processDailySchemes", "0");
|
- |
|
| 71 |
|
- |
|
| 72 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 73 |
int maxMinusDays = 5;
|
59 |
int maxMinusDays = 5;
|
| 74 |
int currentDayOfMonth = LocalDate.now().getDayOfMonth();
|
60 |
int currentDayOfMonth = LocalDate.now().getDayOfMonth();
|
| 75 |
int minusDays = currentDayOfMonth > maxMinusDays ? maxMinusDays : currentDayOfMonth - 1;
|
61 |
int minusDays = currentDayOfMonth > maxMinusDays ? maxMinusDays : currentDayOfMonth - 1;
|
| 76 |
if (minusDays > 0) {
|
62 |
if (minusDays > 0) {
|
| 77 |
scheduledTasks.processScheme(LocalDateTime.now().minusDays(minusDays), LocalDateTime.now(), false);
|
63 |
scheduledTasks.processScheme(LocalDateTime.now().minusDays(minusDays), LocalDateTime.now(), false);
|
| 78 |
}
|
64 |
}
|
| 79 |
propertiesDetails.put("processDailySchemes", "1");
|
- |
|
| 80 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 81 |
|
65 |
|
| 82 |
}
|
66 |
}
|
| 83 |
|
67 |
|
| 84 |
/** Daily 00:20: re-index models whose hot-deal window opened today or closed yesterday. */
|
68 |
/** Daily 00:20: re-index models whose hot-deal window opened today or closed yesterday. */
|
| 85 |
@Scheduled(cron = "0 20 0 * * *")
|
69 |
@Scheduled(cron = "0 20 0 * * *")
|
| Line 92... |
Line 76... |
| 92 |
}
|
76 |
}
|
| 93 |
|
77 |
|
| 94 |
@Scheduled(cron = "0 15 0 * * *")
|
78 |
@Scheduled(cron = "0 15 0 * * *")
|
| 95 |
public void runOnceTasks() throws Exception {
|
79 |
public void runOnceTasks() throws Exception {
|
| 96 |
|
80 |
|
| 97 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 98 |
propertiesDetails.put("runOnceTasks", "0");
|
- |
|
| 99 |
|
- |
|
| 100 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 101 |
|
- |
|
| 102 |
scheduledTasks.reconcileRecharge();
|
81 |
scheduledTasks.reconcileRecharge();
|
| 103 |
|
82 |
|
| 104 |
propertiesDetails.put("runOnceTasks", "1");
|
- |
|
| 105 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 106 |
}
|
83 |
}
|
| 107 |
|
84 |
|
| 108 |
/*
|
85 |
/*
|
| 109 |
* @Scheduled(cron = "0 0 8 * * *") public void mailDashboardScreenshots()
|
86 |
* @Scheduled(cron = "0 0 8 * * *") public void mailDashboardScreenshots()
|
| 110 |
* throws Exception { runOnceTasks.mailDashboardScreenshots(); }
|
87 |
* throws Exception { runOnceTasks.mailDashboardScreenshots(); }
|
| 111 |
*/
|
88 |
*/
|
| 112 |
|
89 |
|
| 113 |
@Scheduled(cron = "0 05 0 1,16 * ?")
|
90 |
@Scheduled(cron = "0 05 0 1,16 * ?")
|
| 114 |
public void processRechargeCashback() throws Throwable {
|
91 |
public void processRechargeCashback() throws Throwable {
|
| 115 |
|
92 |
|
| 116 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 117 |
propertiesDetails.put("processRechargeCashback", "0");
|
- |
|
| 118 |
|
- |
|
| 119 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 120 |
scheduledTasks.processRechargeCashback();
|
93 |
scheduledTasks.processRechargeCashback();
|
| 121 |
|
94 |
|
| 122 |
propertiesDetails.put("processRechargeCashback", "1");
|
- |
|
| 123 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 124 |
|
- |
|
| 125 |
}
|
95 |
}
|
| 126 |
|
96 |
|
| 127 |
@Scheduled(cron = "0 0 6 * * *")
|
97 |
@Scheduled(cron = "0 0 6 * * *")
|
| 128 |
public void sendPartnerInvestmentDetails() throws Exception {
|
98 |
public void sendPartnerInvestmentDetails() throws Exception {
|
| 129 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 130 |
propertiesDetails.put("sendPartnerInvestmentDetails", "0");
|
- |
|
| 131 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 132 |
scheduledTasks.sendPartnerInvestmentDetails();
|
99 |
scheduledTasks.sendPartnerInvestmentDetails();
|
| 133 |
long secs = (new Date().getTime()) / 1000;
|
100 |
long secs = (new Date().getTime()) / 1000;
|
| 134 |
log.info("sendPartnerInvestmentDetails" + LocalDateTime.now());
|
101 |
log.info("sendPartnerInvestmentDetails" + LocalDateTime.now());
|
| 135 |
|
102 |
|
| 136 |
propertiesDetails.put("investmentDate", Long.toString(secs));
|
- |
|
| 137 |
propertiesDetails.put("sendPartnerInvestmentDetails", "1");
|
- |
|
| 138 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 139 |
|
- |
|
| 140 |
}
|
103 |
}
|
| 141 |
|
104 |
|
| 142 |
// Monthly margins CN dry-run at 06:00 on the 1st. dryRun=true forces the harmless dev path
|
105 |
// Monthly margins CN dry-run at 06:00 on the 1st. dryRun=true forces the harmless dev path
|
| 143 |
// (no IRN, no PDF, no DB persist, no partner mail) even on prod. The real pipeline is run
|
106 |
// (no IRN, no PDF, no DB persist, no partner mail) even on prod. The real pipeline is run
|
| 144 |
// manually via `--sendCreditNote --live`.
|
107 |
// manually via `--sendCreditNote --live`.
|
| 145 |
@Scheduled(cron = "0 0 6 1 * ?")
|
108 |
@Scheduled(cron = "0 0 6 1 * ?")
|
| 146 |
public void monthlyMarginsCnDryRun() throws Exception {
|
109 |
public void monthlyMarginsCnDryRun() throws Exception {
|
| 147 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 148 |
propertiesDetails.put("monthlyMarginsCnDryRun", "0");
|
- |
|
| 149 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 150 |
|
110 |
|
| 151 |
scheduledTasks.sendCreditNote(YearMonth.now().minusMonths(1), true);
|
111 |
scheduledTasks.sendCreditNote(YearMonth.now().minusMonths(1), true);
|
| 152 |
|
112 |
|
| 153 |
propertiesDetails.put("monthlyMarginsCnDryRun", "1");
|
- |
|
| 154 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 155 |
}
|
113 |
}
|
| 156 |
|
114 |
|
| 157 |
@Scheduled(cron = "0 30 6 * * *")
|
115 |
@Scheduled(cron = "0 30 6 * * *")
|
| 158 |
public void generateBiReport() throws Exception {
|
116 |
public void generateBiReport() throws Exception {
|
| 159 |
scheduledTasksTest.generateBiReport();
|
117 |
scheduledTasksTest.generateBiReport();
|
| Line 168... |
Line 126... |
| 168 |
}*/
|
126 |
}*/
|
| 169 |
|
127 |
|
| 170 |
@Scheduled(cron = "0 0 10,15,17 * * *")
|
128 |
@Scheduled(cron = "0 0 10,15,17 * * *")
|
| 171 |
public void sendIndentTertiaryReport() throws Exception {
|
129 |
public void sendIndentTertiaryReport() throws Exception {
|
| 172 |
|
130 |
|
| 173 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 174 |
propertiesDetails.put("sendIndentTertiaryReport", "0");
|
- |
|
| 175 |
|
- |
|
| 176 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 177 |
|
- |
|
| 178 |
scheduledTasks.sendIndentTertiary();
|
131 |
scheduledTasks.sendIndentTertiary();
|
| 179 |
|
132 |
|
| 180 |
propertiesDetails.put("sendIndentTertiaryReport", "1");
|
- |
|
| 181 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 182 |
|
- |
|
| 183 |
}
|
133 |
}
|
| 184 |
|
134 |
|
| 185 |
@Scheduled(cron = "0 0 6 * * *")
|
135 |
@Scheduled(cron = "0 0 6 * * *")
|
| 186 |
public void checkPartnerActiveStoreByStatus() throws Exception {
|
136 |
public void checkPartnerActiveStoreByStatus() throws Exception {
|
| 187 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 188 |
propertiesDetails.put("checkPartnerActiveStoreByStatus", "0");
|
- |
|
| 189 |
|
- |
|
| 190 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 191 |
|
137 |
|
| 192 |
scheduledTasks.checkPartnerActiveStore();
|
138 |
scheduledTasks.checkPartnerActiveStore();
|
| 193 |
propertiesDetails.put("checkPartnerActiveStoreByStatus", "1");
|
- |
|
| 194 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 195 |
|
139 |
|
| 196 |
}
|
140 |
}
|
| 197 |
|
141 |
|
| 198 |
@Scheduled(cron = "0 30 23 * * *")
|
142 |
@Scheduled(cron = "0 30 23 * * *")
|
| 199 |
public void updatePartnerActivationTypeByMonthlySale() throws Exception {
|
143 |
public void updatePartnerActivationTypeByMonthlySale() throws Exception {
|
| 200 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 201 |
propertiesDetails.put("updatePartnerActivationTypeByMonthlySale", "0");
|
- |
|
| 202 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 203 |
|
144 |
|
| 204 |
scheduledTasks.updatePartnerActivationTypeByMonthlySale();
|
145 |
scheduledTasks.updatePartnerActivationTypeByMonthlySale();
|
| 205 |
|
146 |
|
| 206 |
propertiesDetails.put("updatePartnerActivationTypeByMonthlySale", "1");
|
- |
|
| 207 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 208 |
}
|
147 |
}
|
| 209 |
|
148 |
|
| 210 |
// 23:45 — after updatePartnerActivationTypeByMonthlySale (23:30), so the
|
149 |
// 23:45 — after updatePartnerActivationTypeByMonthlySale (23:30), so the
|
| 211 |
// REVIVAL agenda mirror reads today's activation_type state.
|
150 |
// REVIVAL agenda mirror reads today's activation_type state.
|
| 212 |
@Scheduled(cron = "0 45 23 * * *")
|
151 |
@Scheduled(cron = "0 45 23 * * *")
|
| 213 |
public void updatePjpAgendaInstances() throws Exception {
|
152 |
public void updatePjpAgendaInstances() throws Exception {
|
| 214 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 215 |
propertiesDetails.put("updatePjpAgendaInstances", "0");
|
- |
|
| 216 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 217 |
|
153 |
|
| 218 |
scheduledTasks.updatePjpAgendaInstances();
|
154 |
scheduledTasks.updatePjpAgendaInstances();
|
| 219 |
|
155 |
|
| 220 |
propertiesDetails.put("updatePjpAgendaInstances", "1");
|
- |
|
| 221 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 222 |
}
|
156 |
}
|
| 223 |
|
157 |
|
| 224 |
// @Scheduled(cron = "0 0 8 * * *")
|
158 |
// @Scheduled(cron = "0 0 8 * * *")
|
| 225 |
public void sendStockAgeingReport() throws Throwable {
|
159 |
public void sendStockAgeingReport() throws Throwable {
|
| 226 |
|
160 |
|
| 227 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 228 |
propertiesDetails.put("sendStockAgeingReport", "0");
|
- |
|
| 229 |
|
- |
|
| 230 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 231 |
|
- |
|
| 232 |
scheduledTasks.sendAgeingReport();
|
161 |
scheduledTasks.sendAgeingReport();
|
| 233 |
|
162 |
|
| 234 |
propertiesDetails.put("sendStockAgeingReport", "1");
|
- |
|
| 235 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 236 |
|
- |
|
| 237 |
}
|
163 |
}
|
| 238 |
|
164 |
|
| 239 |
@Scheduled(cron = "0 0 11 * * *")
|
165 |
@Scheduled(cron = "0 0 11 * * *")
|
| 240 |
public void escalateTicket() throws Exception {
|
166 |
public void escalateTicket() throws Exception {
|
| 241 |
log.info("escalate ticket");
|
167 |
log.info("escalate ticket");
|
| 242 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 243 |
propertiesDetails.put("escalateTicket", "0");
|
- |
|
| 244 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 245 |
ticketRelatedScheduledTask.escalateTicket();
|
168 |
ticketRelatedScheduledTask.escalateTicket();
|
| 246 |
|
169 |
|
| 247 |
propertiesDetails.put("escalateTicket", "1");
|
- |
|
| 248 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 249 |
|
- |
|
| 250 |
}
|
170 |
}
|
| 251 |
|
171 |
|
| 252 |
@Scheduled(cron = "0 0 11 * * *")
|
172 |
@Scheduled(cron = "0 0 11 * * *")
|
| 253 |
public void alertTicketToUser() throws Exception {
|
173 |
public void alertTicketToUser() throws Exception {
|
| 254 |
log.info("alert for ticket");
|
174 |
log.info("alert for ticket");
|
| 255 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 256 |
propertiesDetails.put("alertTicketToUser", "0");
|
- |
|
| 257 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 258 |
|
175 |
|
| 259 |
ticketRelatedScheduledTask.alertforTicket();
|
176 |
ticketRelatedScheduledTask.alertforTicket();
|
| 260 |
propertiesDetails.put("alertTicketToUser", "1");
|
- |
|
| 261 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 262 |
|
177 |
|
| 263 |
}
|
178 |
}
|
| 264 |
|
179 |
|
| 265 |
//@Scheduled(cron = "0 0 14,18,23 ? * *")
|
180 |
//@Scheduled(cron = "0 0 14,18,23 ? * *")
|
| 266 |
public void dailySaleNotification() throws Exception {
|
181 |
public void dailySaleNotification() throws Exception {
|
| 267 |
log.info("daily send Notification");
|
182 |
log.info("daily send Notification");
|
| 268 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 269 |
propertiesDetails.put("dailySaleNotification", "0");
|
- |
|
| 270 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 271 |
|
183 |
|
| 272 |
scheduledTasks.sendDailySalesNotificationToPartner(null);
|
184 |
scheduledTasks.sendDailySalesNotificationToPartner(null);
|
| 273 |
|
185 |
|
| 274 |
propertiesDetails.put("dailySaleNotification", "1");
|
- |
|
| 275 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 276 |
|
- |
|
| 277 |
}
|
186 |
}
|
| 278 |
|
187 |
|
| 279 |
/*
|
188 |
/*
|
| 280 |
* @Scheduled(cron = "0 0 6 * * *") public void dailyReconciliation() throws
|
189 |
* @Scheduled(cron = "0 0 6 * * *") public void dailyReconciliation() throws
|
| 281 |
* Exception { reconciliation.dailyReconciliation(); }
|
190 |
* Exception { reconciliation.dailyReconciliation(); }
|
| Line 289... |
Line 198... |
| 289 |
}
|
198 |
}
|
| 290 |
|
199 |
|
| 291 |
@Scheduled(cron = "0 0 4 * * *")
|
200 |
@Scheduled(cron = "0 0 4 * * *")
|
| 292 |
public void processActivation() throws Exception {
|
201 |
public void processActivation() throws Exception {
|
| 293 |
|
202 |
|
| 294 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 295 |
propertiesDetails.put("processActivation", "0");
|
- |
|
| 296 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 297 |
|
- |
|
| 298 |
scheduledTasks.processActivation();
|
203 |
scheduledTasks.processActivation();
|
| 299 |
|
204 |
|
| 300 |
propertiesDetails.put("processActivation", "1");
|
- |
|
| 301 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 302 |
|
- |
|
| 303 |
}
|
205 |
}
|
| 304 |
|
206 |
|
| 305 |
// TODO: Change it back to first of every month
|
207 |
// TODO: Change it back to first of every month
|
| 306 |
// @Scheduled(cron = "0 0 1 1 * *")
|
208 |
// @Scheduled(cron = "0 0 1 1 * *")
|
| 307 |
@Scheduled(cron = "0 0 1 2 * *")
|
209 |
@Scheduled(cron = "0 0 1 2 * *")
|
| Line 312... |
Line 214... |
| 312 |
|
214 |
|
| 313 |
@Scheduled(fixedDelay = 60 * 1000)
|
215 |
@Scheduled(fixedDelay = 60 * 1000)
|
| 314 |
public void sendNotification() throws Throwable {
|
216 |
public void sendNotification() throws Throwable {
|
| 315 |
|
217 |
|
| 316 |
log.info("send Notification");
|
218 |
log.info("send Notification");
|
| 317 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 318 |
propertiesDetails.put("sendNotification", "0");
|
- |
|
| 319 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 320 |
|
219 |
|
| 321 |
scheduledTasks.sendNotification();
|
220 |
scheduledTasks.sendNotification();
|
| 322 |
propertiesDetails.put("sendNotification", "1");
|
- |
|
| 323 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 324 |
log.info("send Notification Done");
|
221 |
log.info("send Notification Done");
|
| 325 |
|
222 |
|
| 326 |
}
|
223 |
}
|
| 327 |
|
224 |
|
| 328 |
//@Scheduled(cron = "0 */15 * * * *")
|
225 |
//@Scheduled(cron = "0 */15 * * * *")
|
| 329 |
public void checkRazorPayPaymentStatus() throws Throwable {
|
226 |
public void checkRazorPayPaymentStatus() throws Throwable {
|
| 330 |
|
227 |
|
| 331 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 332 |
propertiesDetails.put("checkRazorPayPaymentStatus", "0");
|
- |
|
| 333 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 334 |
|
- |
|
| 335 |
scheduledTasks.checkRazorPayPaymentStatus();
|
228 |
scheduledTasks.checkRazorPayPaymentStatus();
|
| 336 |
propertiesDetails.put("checkRazorPayPaymentStatus", "1");
|
- |
|
| 337 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 338 |
|
229 |
|
| 339 |
}
|
230 |
}
|
| 340 |
|
231 |
|
| 341 |
@Scheduled(fixedDelay = 5 * 1000)
|
232 |
@Scheduled(fixedDelay = 5 * 1000)
|
| 342 |
//@Scheduled(cron = "0 5 23 * * *")
|
233 |
//@Scheduled(cron = "0 5 23 * * *")
|
| Line 346... |
Line 237... |
| 346 |
|
237 |
|
| 347 |
// No longer needed
|
238 |
// No longer needed
|
| 348 |
// @Scheduled(cron = "0 */10 * * * *")
|
239 |
// @Scheduled(cron = "0 */10 * * * *")
|
| 349 |
public void attachToffeeInvoices() throws Throwable {
|
240 |
public void attachToffeeInvoices() throws Throwable {
|
| 350 |
|
241 |
|
| 351 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 352 |
propertiesDetails.put("attachToffeeInvoices", "0");
|
- |
|
| 353 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 354 |
|
- |
|
| 355 |
scheduledTasks.attachToffeeInvoices();
|
242 |
scheduledTasks.attachToffeeInvoices();
|
| 356 |
|
243 |
|
| 357 |
propertiesDetails.put("attachToffeeInvoices", "1");
|
- |
|
| 358 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 359 |
|
- |
|
| 360 |
}
|
244 |
}
|
| 361 |
|
245 |
|
| 362 |
// REMOVED: ticketClosed() scheduler - now handled by TicketRelatedScheduledTask.autoCloseResolvedTickets()
|
246 |
// REMOVED: ticketClosed() scheduler - now handled by TicketRelatedScheduledTask.autoCloseResolvedTickets()
|
| 363 |
// which uses 8 working days instead of 7 calendar days and runs as part of processAllTicketTasks()
|
247 |
// which uses 8 working days instead of 7 calendar days and runs as part of processAllTicketTasks()
|
| 364 |
|
248 |
|
| 365 |
@Scheduled(cron = "0 0 8 * * *")
|
249 |
@Scheduled(cron = "0 0 8 * * *")
|
| 366 |
public void checkfocusedModelInPartnerStock() throws Throwable {
|
250 |
public void checkfocusedModelInPartnerStock() throws Throwable {
|
| 367 |
log.info("startTime" + LocalDateTime.now());
|
251 |
log.info("startTime" + LocalDateTime.now());
|
| 368 |
|
252 |
|
| 369 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 370 |
propertiesDetails.put("checkfocusedModelInPartnerStock", "0");
|
- |
|
| 371 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 372 |
|
- |
|
| 373 |
scheduledTasks.checkfocusedModelInPartnerStock();
|
253 |
scheduledTasks.checkfocusedModelInPartnerStock();
|
| 374 |
propertiesDetails.put("checkfocusedModelInPartnerStock", "1");
|
- |
|
| 375 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 376 |
|
254 |
|
| 377 |
log.info("endTime" + LocalDateTime.now());
|
255 |
log.info("endTime" + LocalDateTime.now());
|
| 378 |
}
|
256 |
}
|
| 379 |
|
257 |
|
| 380 |
@Scheduled(cron = "0 0 8,10,12,14,16,18,20 * * *")
|
258 |
@Scheduled(cron = "0 0 8,10,12,14,16,18,20 * * *")
|
| 381 |
public void notifyLead() throws Throwable {
|
259 |
public void notifyLead() throws Throwable {
|
| 382 |
|
260 |
|
| 383 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 384 |
propertiesDetails.put("notifyLead", "0");
|
- |
|
| 385 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 386 |
|
- |
|
| 387 |
scheduledTasks.notifyLead();
|
261 |
scheduledTasks.notifyLead();
|
| 388 |
|
262 |
|
| 389 |
propertiesDetails.put("notifyLead", "1");
|
- |
|
| 390 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 391 |
|
- |
|
| 392 |
// scheduledTasks.notifyVisits();
|
263 |
// scheduledTasks.notifyVisits();
|
| 393 |
}
|
264 |
}
|
| 394 |
|
265 |
|
| 395 |
// No longer scheduled
|
266 |
// No longer scheduled
|
| 396 |
// @Scheduled(cron = "0 0 1 * * *")
|
267 |
// @Scheduled(cron = "0 0 1 * * *")
|
| 397 |
public void fetchImeiActivation() throws Throwable {
|
268 |
public void fetchImeiActivation() throws Throwable {
|
| 398 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 399 |
propertiesDetails.put("fetchImeiActivation", "0");
|
- |
|
| 400 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 401 |
|
269 |
|
| 402 |
runOnceTasks.fetchImeiActivation(0);
|
270 |
runOnceTasks.fetchImeiActivation(0);
|
| 403 |
|
271 |
|
| 404 |
propertiesDetails.put("fetchImeiActivation", "1");
|
- |
|
| 405 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 406 |
|
- |
|
| 407 |
}
|
272 |
}
|
| 408 |
|
273 |
|
| 409 |
@Scheduled(cron = "0 0 7 * * *")
|
274 |
@Scheduled(cron = "0 0 7 * * *")
|
| 410 |
//Send all lead owners the report for scheduled followups missed
|
275 |
//Send all lead owners the report for scheduled followups missed
|
| 411 |
public void sendUnscheduledFollowUpMail() throws Exception {
|
276 |
public void sendUnscheduledFollowUpMail() throws Exception {
|
| Line 413... |
Line 278... |
| 413 |
}
|
278 |
}
|
| 414 |
|
279 |
|
| 415 |
@Scheduled(cron = "0 0 1 * * *")
|
280 |
@Scheduled(cron = "0 0 1 * * *")
|
| 416 |
public void checkValidateReferral() throws Throwable {
|
281 |
public void checkValidateReferral() throws Throwable {
|
| 417 |
log.info("startTime" + LocalDateTime.now());
|
282 |
log.info("startTime" + LocalDateTime.now());
|
| 418 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 419 |
propertiesDetails.put("checkValidateReferral", "0");
|
- |
|
| 420 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 421 |
|
283 |
|
| 422 |
scheduledTasks.checkValidateReferral();
|
284 |
scheduledTasks.checkValidateReferral();
|
| 423 |
|
285 |
|
| 424 |
propertiesDetails.put("checkValidateReferral", "1");
|
- |
|
| 425 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 426 |
|
- |
|
| 427 |
log.info("endTime" + LocalDateTime.now());
|
286 |
log.info("endTime" + LocalDateTime.now());
|
| 428 |
}
|
287 |
}
|
| 429 |
|
288 |
|
| 430 |
// @Scheduled(cron = "0 0 8 * * *")
|
289 |
// @Scheduled(cron = "0 0 8 * * *")
|
| 431 |
public void partnerProblemAlert() throws Throwable {
|
290 |
public void partnerProblemAlert() throws Throwable {
|
| 432 |
log.info("startTime" + LocalDateTime.now());
|
291 |
log.info("startTime" + LocalDateTime.now());
|
| 433 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 434 |
propertiesDetails.put("partnerProblemAlert", "0");
|
- |
|
| 435 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 436 |
|
292 |
|
| 437 |
scheduledTasks.partnerProblemAlert();
|
293 |
scheduledTasks.partnerProblemAlert();
|
| 438 |
propertiesDetails.put("partnerProblemAlert", "1");
|
- |
|
| 439 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 440 |
|
294 |
|
| 441 |
log.info("endTime" + LocalDateTime.now());
|
295 |
log.info("endTime" + LocalDateTime.now());
|
| 442 |
}
|
296 |
}
|
| 443 |
|
297 |
|
| 444 |
/*
|
298 |
/*
|
| Line 473... |
Line 327... |
| 473 |
|
327 |
|
| 474 |
@Scheduled(cron = "0 0 10 * * *")
|
328 |
@Scheduled(cron = "0 0 10 * * *")
|
| 475 |
public void onboardingEventDelays() throws Throwable {
|
329 |
public void onboardingEventDelays() throws Throwable {
|
| 476 |
log.info("startTime" + LocalDateTime.now());
|
330 |
log.info("startTime" + LocalDateTime.now());
|
| 477 |
|
331 |
|
| 478 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 479 |
propertiesDetails.put("onboardingEventDelays", "0");
|
- |
|
| 480 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 481 |
|
- |
|
| 482 |
onBoardingRelatedSchelduleTask.onboardingEventDelays();
|
332 |
onBoardingRelatedSchelduleTask.onboardingEventDelays();
|
| 483 |
|
333 |
|
| 484 |
propertiesDetails.put("onboardingEventDelays", "1");
|
- |
|
| 485 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 486 |
|
- |
|
| 487 |
log.info("endTime" + LocalDateTime.now());
|
334 |
log.info("endTime" + LocalDateTime.now());
|
| 488 |
}
|
335 |
}
|
| 489 |
|
336 |
|
| 490 |
@Scheduled(cron = "0 30 10 * * *")
|
337 |
@Scheduled(cron = "0 30 10 * * *")
|
| 491 |
public void sendStockDeliveredTrainingNotification() {
|
338 |
public void sendStockDeliveredTrainingNotification() {
|
| Line 502... |
Line 349... |
| 502 |
}
|
349 |
}
|
| 503 |
|
350 |
|
| 504 |
@Scheduled(cron = "0 0 8 * * *")
|
351 |
@Scheduled(cron = "0 0 8 * * *")
|
| 505 |
public void brandingAlert() throws Throwable {
|
352 |
public void brandingAlert() throws Throwable {
|
| 506 |
log.info("startTime" + LocalDateTime.now());
|
353 |
log.info("startTime" + LocalDateTime.now());
|
| 507 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 508 |
propertiesDetails.put("brandingAlert", "0");
|
- |
|
| 509 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 510 |
|
354 |
|
| 511 |
onBoardingRelatedSchelduleTask.brandingAlert();
|
355 |
onBoardingRelatedSchelduleTask.brandingAlert();
|
| 512 |
propertiesDetails.put("brandingAlert", "1");
|
- |
|
| 513 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 514 |
|
356 |
|
| 515 |
log.info("endTime" + LocalDateTime.now());
|
357 |
log.info("endTime" + LocalDateTime.now());
|
| 516 |
}
|
358 |
}
|
| 517 |
|
359 |
|
| 518 |
// @Scheduled(cron = "0 0 8 * * *")
|
360 |
// @Scheduled(cron = "0 0 8 * * *")
|
| Line 532... |
Line 374... |
| 532 |
|
374 |
|
| 533 |
@Scheduled(cron = "0 0 8 * * *")
|
375 |
@Scheduled(cron = "0 0 8 * * *")
|
| 534 |
public void fullPaymentPendingAlert() throws Throwable {
|
376 |
public void fullPaymentPendingAlert() throws Throwable {
|
| 535 |
log.info("startTime" + LocalDateTime.now());
|
377 |
log.info("startTime" + LocalDateTime.now());
|
| 536 |
|
378 |
|
| 537 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 538 |
propertiesDetails.put("fullPaymentPendingAlert", "0");
|
- |
|
| 539 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 540 |
|
- |
|
| 541 |
onBoardingRelatedSchelduleTask.fullPaymentPendingAlert();
|
379 |
onBoardingRelatedSchelduleTask.fullPaymentPendingAlert();
|
| 542 |
|
380 |
|
| 543 |
propertiesDetails.put("fullPaymentPendingAlert", "1");
|
- |
|
| 544 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 545 |
|
- |
|
| 546 |
log.info("endTime" + LocalDateTime.now());
|
381 |
log.info("endTime" + LocalDateTime.now());
|
| 547 |
}
|
382 |
}
|
| 548 |
|
383 |
|
| 549 |
// @Scheduled(cron = "0 0 9 * * *")
|
384 |
// @Scheduled(cron = "0 0 9 * * *")
|
| 550 |
// public void advancePaymentPendinglegalAlert() throws Throwable {
|
385 |
// public void advancePaymentPendinglegalAlert() throws Throwable {
|
| Line 562... |
Line 397... |
| 562 |
// }
|
397 |
// }
|
| 563 |
|
398 |
|
| 564 |
@Scheduled(cron = "0 */5 * * * *")
|
399 |
@Scheduled(cron = "0 */5 * * * *")
|
| 565 |
public void onBoardingCompleteEventEmail() throws Throwable {
|
400 |
public void onBoardingCompleteEventEmail() throws Throwable {
|
| 566 |
log.info("startTime" + LocalDateTime.now());
|
401 |
log.info("startTime" + LocalDateTime.now());
|
| 567 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 568 |
propertiesDetails.put("onBoardingCompleteEventEmail", "0");
|
- |
|
| 569 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 570 |
|
402 |
|
| 571 |
onBoardingRelatedSchelduleTask.onBoardingCompleteEventEmail();
|
403 |
onBoardingRelatedSchelduleTask.onBoardingCompleteEventEmail();
|
| 572 |
propertiesDetails.put("onBoardingCompleteEventEmail", "1");
|
- |
|
| 573 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 574 |
|
404 |
|
| 575 |
log.info("endTime" + LocalDateTime.now());
|
405 |
log.info("endTime" + LocalDateTime.now());
|
| 576 |
}
|
406 |
}
|
| 577 |
|
407 |
|
| 578 |
@Scheduled(cron = "0 */5 * * * *")
|
408 |
@Scheduled(cron = "0 */5 * * * *")
|
| Line 614... |
Line 444... |
| 614 |
|
444 |
|
| 615 |
//@Scheduled(cron = "0 0 23 * * *")
|
445 |
//@Scheduled(cron = "0 0 23 * * *")
|
| 616 |
public void checkItelImeiActivationNew() throws Throwable {
|
446 |
public void checkItelImeiActivationNew() throws Throwable {
|
| 617 |
log.info("startTime" + LocalDate.now());
|
447 |
log.info("startTime" + LocalDate.now());
|
| 618 |
|
448 |
|
| 619 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 620 |
propertiesDetails.put("checkItelImeiActivationNew", "0");
|
- |
|
| 621 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 622 |
log.info("startTimecheckItelImeiActivation" + LocalDate.now());
|
449 |
log.info("startTimecheckItelImeiActivation" + LocalDate.now());
|
| 623 |
scheduledTasks.checkItelImeiActivationNew(LocalDate.now(), 90);
|
450 |
scheduledTasks.checkItelImeiActivationNew(LocalDate.now(), 90);
|
| 624 |
long secs = (new Date().getTime()) / 1000;
|
451 |
long secs = (new Date().getTime()) / 1000;
|
| 625 |
log.info("endTimecheckItelImeiActivation" + LocalDate.now());
|
452 |
log.info("endTimecheckItelImeiActivation" + LocalDate.now());
|
| 626 |
propertiesDetails.put("checkItelImeiActivationNew", "1");
|
- |
|
| 627 |
propertiesDetails.put("itelDate", Long.toString(secs));
|
- |
|
| 628 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 629 |
|
453 |
|
| 630 |
}
|
454 |
}
|
| 631 |
|
455 |
|
| 632 |
|
- |
|
| 633 |
@Scheduled(fixedDelay = 5 * 60 * 1000)
|
456 |
@Scheduled(fixedDelay = 5 * 60 * 1000)
|
| 634 |
public void vivoImeiActivation() throws Throwable {
|
457 |
public void vivoImeiActivation() throws Throwable {
|
| 635 |
log.info("startTimevivoImeiActivation" + LocalDateTime.now());
|
458 |
log.info("startTimevivoImeiActivation" + LocalDateTime.now());
|
| 636 |
|
459 |
|
| 637 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 638 |
propertiesDetails.put("vivoImeiActivation", "0");
|
- |
|
| 639 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 640 |
|
- |
|
| 641 |
scheduledTasks.checkImeiActivation();
|
460 |
scheduledTasks.checkImeiActivation();
|
| 642 |
long secs = (new Date().getTime()) / 1000;
|
461 |
long secs = (new Date().getTime()) / 1000;
|
| 643 |
log.info("endTimevivoImeiActivation" + LocalDateTime.now());
|
462 |
log.info("endTimevivoImeiActivation" + LocalDateTime.now());
|
| 644 |
propertiesDetails.put("vivoImeiActivation", "1");
|
- |
|
| 645 |
|
- |
|
| 646 |
propertiesDetails.put("vivoDate", Long.toString(secs));
|
- |
|
| 647 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 648 |
|
463 |
|
| 649 |
}
|
464 |
}
|
| 650 |
|
465 |
|
| 651 |
@Scheduled(fixedDelay = 5 * 60 * 1000)
|
466 |
@Scheduled(fixedDelay = 5 * 60 * 1000)
|
| 652 |
public void vivoImeiActivationTertiary() throws Throwable {
|
467 |
public void vivoImeiActivationTertiary() throws Throwable {
|
| Line 722... |
Line 537... |
| 722 |
log.info("endTime" + LocalDateTime.now());
|
537 |
log.info("endTime" + LocalDateTime.now());
|
| 723 |
}
|
538 |
}
|
| 724 |
|
539 |
|
| 725 |
@Scheduled(cron = "0 15 * * * *")
|
540 |
@Scheduled(cron = "0 15 * * * *")
|
| 726 |
public void markDelhiveryOrderDelivered() throws Throwable {
|
541 |
public void markDelhiveryOrderDelivered() throws Throwable {
|
| 727 |
LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
|
- |
|
| 728 |
propertiesDetails.put("markDelhiveryOrderDelivered", "0");
|
- |
|
| 729 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 730 |
|
542 |
|
| 731 |
log.info("startTime" + LocalDateTime.now());
|
543 |
log.info("startTime" + LocalDateTime.now());
|
| 732 |
orderTrackingService.markDelhiveryOrderDelivered();
|
544 |
orderTrackingService.markDelhiveryOrderDelivered();
|
| 733 |
propertiesDetails.put("markDelhiveryOrderDelivered", "1");
|
- |
|
| 734 |
writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
|
- |
|
| 735 |
|
545 |
|
| 736 |
log.info("endTime" + LocalDateTime.now());
|
546 |
log.info("endTime" + LocalDateTime.now());
|
| 737 |
}
|
547 |
}
|
| 738 |
|
548 |
|
| 739 |
@Scheduled(cron = "0 0 4 * * *")
|
549 |
@Scheduled(cron = "0 0 4 * * *")
|
| Line 810... |
Line 620... |
| 810 |
@Scheduled(cron = "0 0 9,14,18 * * *")
|
620 |
@Scheduled(cron = "0 0 9,14,18 * * *")
|
| 811 |
public void createOpeningStockPartyWise() throws Throwable {
|
621 |
public void createOpeningStockPartyWise() throws Throwable {
|
| 812 |
scheduledTasks.createOpeningStockPartyWise();
|
622 |
scheduledTasks.createOpeningStockPartyWise();
|
| 813 |
}
|
623 |
}
|
| 814 |
|
624 |
|
| 815 |
|
- |
|
| 816 |
//Loans due/overdue/default notifications sent to parnters
|
625 |
//Loans due/overdue/default notifications sent to parnters
|
| 817 |
@Scheduled(cron = "0 0 11 * * *")
|
626 |
@Scheduled(cron = "0 0 11 * * *")
|
| 818 |
public void sendMailWhatsAppAfterLoanDueDate() throws Throwable {
|
627 |
public void sendMailWhatsAppAfterLoanDueDate() throws Throwable {
|
| 819 |
scheduledTasks.sendMailWhatsAppAfterLoanDueDate();
|
628 |
scheduledTasks.sendMailWhatsAppAfterLoanDueDate();
|
| 820 |
}
|
629 |
}
|
| Line 866... |
Line 675... |
| 866 |
@Scheduled(cron = "0 10 8 * * *")
|
675 |
@Scheduled(cron = "0 10 8 * * *")
|
| 867 |
public void sendMailForAgeingAlert() throws Throwable {
|
676 |
public void sendMailForAgeingAlert() throws Throwable {
|
| 868 |
scheduledTasks.sendMailForAgeingAlert();
|
677 |
scheduledTasks.sendMailForAgeingAlert();
|
| 869 |
}
|
678 |
}
|
| 870 |
|
679 |
|
| 871 |
|
- |
|
| 872 |
@Scheduled(cron = "0 0 8 * * *")
|
680 |
@Scheduled(cron = "0 0 8 * * *")
|
| 873 |
public void sendFilteredRetailerPerformance() throws Throwable {
|
681 |
public void sendFilteredRetailerPerformance() throws Throwable {
|
| 874 |
scheduledTasks.sendFilteredRetailerPerformance();
|
682 |
scheduledTasks.sendFilteredRetailerPerformance();
|
| 875 |
}
|
683 |
}
|
| 876 |
|
684 |
|
| Line 882... |
Line 690... |
| 882 |
@Scheduled(cron = "0 10 6 * * *")
|
690 |
@Scheduled(cron = "0 10 6 * * *")
|
| 883 |
public void findTodayPocoBillingItems() throws Throwable {
|
691 |
public void findTodayPocoBillingItems() throws Throwable {
|
| 884 |
scheduledTasks.findTodayPocoBillingItems();
|
692 |
scheduledTasks.findTodayPocoBillingItems();
|
| 885 |
}
|
693 |
}
|
| 886 |
|
694 |
|
| 887 |
|
- |
|
| 888 |
@Scheduled(cron = "0 0 12 * * *")
|
695 |
@Scheduled(cron = "0 0 12 * * *")
|
| 889 |
public void rejectPriceDropsOfApprovedImeis() throws Throwable {
|
696 |
public void rejectPriceDropsOfApprovedImeis() throws Throwable {
|
| 890 |
batchScheduledTasks.reprocessPriceDropsWithBatch();
|
697 |
batchScheduledTasks.reprocessPriceDropsWithBatch();
|
| 891 |
}
|
698 |
}
|
| 892 |
|
699 |
|
| Line 925... |
Line 732... |
| 925 |
/*@Scheduled(cron = "0 0 12 * * *")
|
732 |
/*@Scheduled(cron = "0 0 12 * * *")
|
| 926 |
public void processCashDiscount() throws Throwable {
|
733 |
public void processCashDiscount() throws Throwable {
|
| 927 |
scheduledTasks.processCashDiscount();
|
734 |
scheduledTasks.processCashDiscount();
|
| 928 |
}*/
|
735 |
}*/
|
| 929 |
|
736 |
|
| 930 |
|
- |
|
| 931 |
@Scheduled(cron = "0 0 9,17 * * *")
|
737 |
@Scheduled(cron = "0 0 9,17 * * *")
|
| 932 |
public void bidConsolidatedMessage() throws Throwable {
|
738 |
public void bidConsolidatedMessage() throws Throwable {
|
| 933 |
log.info("Running bid cron at 09:00 AM or 05:00 PM");
|
739 |
log.info("Running bid cron at 09:00 AM or 05:00 PM");
|
| 934 |
runOnceTasks.consolidatedBiddingMessage();
|
740 |
runOnceTasks.consolidatedBiddingMessage();
|
| 935 |
}
|
741 |
}
|