| Line 2... |
Line 2... |
| 2 |
|
2 |
|
| 3 |
import com.smartdukaan.cron.migrations.RunOnceTasks;
|
3 |
import com.smartdukaan.cron.migrations.RunOnceTasks;
|
| 4 |
import com.smartdukaan.cron.scheduled.*;
|
4 |
import com.smartdukaan.cron.scheduled.*;
|
| 5 |
import com.smartdukaan.cron.scheduled.b2b.Listing;
|
5 |
import com.smartdukaan.cron.scheduled.b2b.Listing;
|
| 6 |
import com.smartdukaan.cron.scheduled.leadsync.LeadSyncRunner;
|
6 |
import com.smartdukaan.cron.scheduled.leadsync.LeadSyncRunner;
|
| - |
|
7 |
import com.smartdukaan.cron.scheduled.ordertracking.OrderTrackingService;
|
| 7 |
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
|
8 |
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
|
| 8 |
import com.spice.profitmandi.dao.repository.cs.CsService;
|
9 |
import com.spice.profitmandi.dao.repository.cs.CsService;
|
| 9 |
import com.spice.profitmandi.dao.repository.fofo.FofoOrderItemRepository;
|
10 |
import com.spice.profitmandi.dao.repository.fofo.FofoOrderItemRepository;
|
| 10 |
import com.spice.profitmandi.dao.util.ContentPojoPopulator;
|
11 |
import com.spice.profitmandi.dao.util.ContentPojoPopulator;
|
| 11 |
import com.spice.profitmandi.service.integrations.samsung.upgradeoffer.UpgradeOfferService;
|
12 |
import com.spice.profitmandi.service.integrations.samsung.upgradeoffer.UpgradeOfferService;
|
| Line 77... |
Line 78... |
| 77 |
|
78 |
|
| 78 |
@Autowired
|
79 |
@Autowired
|
| 79 |
private Listing listing;
|
80 |
private Listing listing;
|
| 80 |
|
81 |
|
| 81 |
|
82 |
|
| - |
|
83 |
@Autowired
|
| - |
|
84 |
OrderTrackingService orderTrackingService;
|
| - |
|
85 |
|
| 82 |
public static void main(String[] args) throws Throwable {
|
86 |
public static void main(String[] args) throws Throwable {
|
| 83 |
try {
|
87 |
try {
|
| 84 |
new SpringApplicationBuilder(Application.class).web(WebApplicationType.NONE).run(args);
|
88 |
new SpringApplicationBuilder(Application.class).web(WebApplicationType.NONE).run(args);
|
| 85 |
} catch (Throwable t) {
|
89 |
} catch (Throwable t) {
|
| 86 |
t.printStackTrace();
|
90 |
t.printStackTrace();
|
| Line 383... |
Line 387... |
| 383 |
onBoardingRelatedSchelduleTask.advancePaymentPendinglegalAlert();
|
387 |
onBoardingRelatedSchelduleTask.advancePaymentPendinglegalAlert();
|
| 384 |
System.exit(0);
|
388 |
System.exit(0);
|
| 385 |
}
|
389 |
}
|
| 386 |
|
390 |
|
| 387 |
if (args.containsOption("markDelhiveryOrderDelivered")) {
|
391 |
if (args.containsOption("markDelhiveryOrderDelivered")) {
|
| 388 |
scheduledTasks.markDelhiveryOrderDelivered();
|
392 |
orderTrackingService.markDelhiveryOrderDelivered();
|
| 389 |
System.exit(0);
|
393 |
System.exit(0);
|
| 390 |
}
|
394 |
}
|
| 391 |
//rkb
|
395 |
|
| 392 |
if (args.containsOption("markBlueDartOrderDelivered")) {
|
396 |
if (args.containsOption("markBlueDartOrderDelivered")) {
|
| 393 |
System.out.println("Marking BlueDart Order Delivered...");
|
397 |
System.out.println("Marking BlueDart Order Delivered...");
|
| 394 |
scheduledTasks.markBlueDartOrderDelivered();
|
398 |
orderTrackingService.markBlueDartOrderDelivered();
|
| 395 |
System.exit(0);
|
399 |
System.exit(0);
|
| 396 |
}
|
400 |
}
|
| 397 |
System.out.println("scheduledTasks.markBlueDartOrderDelivered()");
|
- |
|
| 398 |
if (args.containsOption("mergingdata")) {
|
401 |
if (args.containsOption("mergingdata")) {
|
| 399 |
onBoardingRelatedSchelduleTask.mergingdata();
|
402 |
onBoardingRelatedSchelduleTask.mergingdata();
|
| 400 |
System.exit(0);
|
403 |
System.exit(0);
|
| 401 |
}
|
404 |
}
|
| 402 |
if (args.containsOption("brandingAlert")) {
|
405 |
if (args.containsOption("brandingAlert")) {
|
| Line 902... |
Line 905... |
| 902 |
scheduledTasks.calculateInterestAccured();
|
905 |
scheduledTasks.calculateInterestAccured();
|
| 903 |
}
|
906 |
}
|
| 904 |
System.out.println("scheduledTasks.calculateInterestAccured()");
|
907 |
System.out.println("scheduledTasks.calculateInterestAccured()");
|
| 905 |
// 0
|
908 |
// 0
|
| 906 |
if (args.containsOption("3")) {
|
909 |
if (args.containsOption("3")) {
|
| 907 |
scheduledTasks.markDelhiveryOrderDelivered();
|
910 |
orderTrackingService.markDelhiveryOrderDelivered();
|
| 908 |
}
|
911 |
}
|
| 909 |
System.out.println("scheduledTasks.markDelhiveryOrderDelivered()");
|
912 |
System.out.println("scheduledTasks.markDelhiveryOrderDelivered()");
|
| 910 |
// 1
|
913 |
// 1
|
| 911 |
if (args.containsOption("4")) {
|
914 |
if (args.containsOption("4")) {
|
| 912 |
scheduledTasks.processActivatedImeisForSchemes();
|
915 |
scheduledTasks.processActivatedImeisForSchemes();
|