Subversion Repositories SmartDukaan

Rev

Rev 36254 | Rev 36432 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36254 Rev 36306
Line 86... Line 86...
86
    private Listing listing;
86
    private Listing listing;
87
 
87
 
88
    @Autowired
88
    @Autowired
89
    OrderTrackingService orderTrackingService;
89
    OrderTrackingService orderTrackingService;
90
 
90
 
-
 
91
    @Autowired
-
 
92
    BatchScheduledTasks batchScheduledTasks;
-
 
93
 
91
    public static void main(String[] args) throws Throwable {
94
    public static void main(String[] args) throws Throwable {
92
        try {
95
        try {
93
            WebApplicationType webType = WebApplicationType.SERVLET;
96
            WebApplicationType webType = WebApplicationType.SERVLET;
94
            for (String arg : args) {
97
            for (String arg : args) {
95
                if (arg.contains("spring.main.web-application-type=none")) {
98
                if (arg.contains("spring.main.web-application-type=none")) {
Line 1092... Line 1095...
1092
        if (args.containsOption("processActivatedImeisForSchemes")) {
1095
        if (args.containsOption("processActivatedImeisForSchemes")) {
1093
            scheduledTasks.processActivatedImeisForSchemes();
1096
            scheduledTasks.processActivatedImeisForSchemes();
1094
            System.exit(0);
1097
            System.exit(0);
1095
        }
1098
        }
1096
 
1099
 
-
 
1100
        if (args.containsOption("updatePartnerLimitWithBatch")) {
-
 
1101
            System.out.println("Running updatePartnerLimit with batch tracking");
-
 
1102
            batchScheduledTasks.updatePartnerLimitWithBatch();
-
 
1103
            System.exit(0);
-
 
1104
        }
-
 
1105
 
-
 
1106
        if (args.containsOption("processOffersWithBatch")) {
-
 
1107
            for (String val : args.getOptionValues("processOffersWithBatch")) {
-
 
1108
                for (String id : val.split(",")) {
-
 
1109
                    int offerId = Integer.parseInt(id.trim());
-
 
1110
                    System.out.println("Processing offer with batch: " + offerId);
-
 
1111
                    batchScheduledTasks.processOfferWithBatch(offerId);
-
 
1112
                }
-
 
1113
            }
-
 
1114
            System.exit(0);
-
 
1115
        }
-
 
1116
 
1097
        if (args.containsOption("notifyLoanDueDateCross")) {
1117
        if (args.containsOption("notifyLoanDueDateCross")) {
1098
            scheduledTasks.notifyLoanDueDateCross();
1118
            scheduledTasks.notifyLoanDueDateCross();
1099
            System.exit(0);
1119
            System.exit(0);
1100
        }
1120
        }
1101
        if (args.containsOption("sendTenOrMoreOrderStockReport")) {
1121
        if (args.containsOption("sendTenOrMoreOrderStockReport")) {