Subversion Repositories SmartDukaan

Rev

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

Rev 32008 Rev 32080
Line 47... Line 47...
47
import com.spice.profitmandi.dao.util.ContentPojoPopulator;
47
import com.spice.profitmandi.dao.util.ContentPojoPopulator;
48
import com.spice.profitmandi.service.integrations.samsung.upgradeoffer.UpgradeOfferService;
48
import com.spice.profitmandi.service.integrations.samsung.upgradeoffer.UpgradeOfferService;
49
 
49
 
50
@SpringBootApplication
50
@SpringBootApplication
51
//@EnableCaching
51
//@EnableCaching
52
@EnableScheduling
52
//@EnableScheduling
53
@ComponentScan("com.smartdukaan.cron.*, com.spice.profitmandi.common.*")
53
@ComponentScan("com.smartdukaan.cron.*, com.spice.profitmandi.common.*")
54
public class Application implements ApplicationRunner {
54
public class Application implements ApplicationRunner {
55
 
55
 
56
    private static final Logger LOGGER = LogManager.getLogger(Application.class);
56
    private static final Logger LOGGER = LogManager.getLogger(Application.class);
57
 
57
 
Line 190... Line 190...
190
            System.out.println("Bag service called");
190
            System.out.println("Bag service called");
191
            runOnceTasks.testBag();
191
            runOnceTasks.testBag();
192
            System.exit(0);
192
            System.exit(0);
193
        }
193
        }
194
 
194
 
-
 
195
 
-
 
196
        if (args.containsOption("migrateVendorItemPricing")) {
-
 
197
            scheduledTasks.migrateVendorItemPricing();
-
 
198
            System.exit(0);
-
 
199
        }
-
 
200
 
-
 
201
 
-
 
202
        if (args.containsOption("approveVendorCatalogPricing")) {
-
 
203
            scheduledTasks.approveVendorCatalogPricing();
-
 
204
            System.exit(0);
-
 
205
        }
-
 
206
 
195
        if (args.containsOption("rw")) {
207
        if (args.containsOption("rw")) {
196
            System.out.println("Reverse wallet");
208
            System.out.println("Reverse wallet");
197
            scheduledTasks.reverseWallet();
209
            scheduledTasks.reverseWallet();
198
            System.exit(0);
210
            System.exit(0);
199
        }
211
        }
Line 265... Line 277...
265
        }
277
        }
266
        if (args.containsOption("fixWallet")) {
278
        if (args.containsOption("fixWallet")) {
267
            runOnceTasks.fixWallet();
279
            runOnceTasks.fixWallet();
268
            System.exit(0);
280
            System.exit(0);
269
        }
281
        }
-
 
282
 
-
 
283
        if (args.containsOption("sendFilteredRetailerPerformance")) {
-
 
284
            scheduledTasks.sendFilteredRetailerPerformance();
-
 
285
            System.exit(0);
-
 
286
        }
270
        if (args.containsOption("reconcileExpiredFixedSchemes")) {
287
        if (args.containsOption("reconcileExpiredFixedSchemes")) {
271
            reconciliation.reconcileExpiredFixedSchemes();
288
            reconciliation.reconcileExpiredFixedSchemes();
272
            System.exit(0);
289
            System.exit(0);
273
        }
290
        }
274
        if (args.containsOption("dailyReconciliation")) {
291
        if (args.containsOption("dailyReconciliation")) {
Line 471... Line 488...
471
            if (args.containsOption("1")) {
488
            if (args.containsOption("1")) {
472
                if (args.containsOption("test")) {
489
                if (args.containsOption("test")) {
473
                    //scheduledTasks.sendPartnerInvestmentDetails(args.getOptionValues("email"));
490
                    //scheduledTasks.sendPartnerInvestmentDetails(args.getOptionValues("email"));
474
                    System.out.println("Calling test method");
491
                    System.out.println("Calling test method");
475
                    scheduledTasks.test();
492
                    scheduledTasks.test();
476
                } else if(args.containsOption("test1")) {
493
                } else if (args.containsOption("test1")) {
477
                    scheduledTasks.test1();
494
                    scheduledTasks.test1();
478
                }else {
495
                } else {
479
                    System.out.println("Called sendPartnerInvestmentDetails");
496
                    System.out.println("Called sendPartnerInvestmentDetails");
480
                    scheduledTasks.sendPartnerInvestmentDetails();
497
                    scheduledTasks.sendPartnerInvestmentDetails();
481
                }
498
                }
482
                System.exit(0);
499
                System.exit(0);
483
            }
500
            }