Subversion Repositories SmartDukaan

Rev

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

Rev 30746 Rev 30758
Line 36... Line 36...
36
import java.util.Properties;
36
import java.util.Properties;
37
import java.util.stream.Collectors;
37
import java.util.stream.Collectors;
38
 
38
 
39
@SpringBootApplication
39
@SpringBootApplication
40
//@EnableCaching
40
//@EnableCaching
41
@EnableScheduling
41
//@EnableScheduling
42
@ComponentScan("com.smartdukaan.cron.*, com.spice.profitmandi.common.*")
42
@ComponentScan("com.smartdukaan.cron.*, com.spice.profitmandi.common.*")
43
public class Application implements ApplicationRunner {
43
public class Application implements ApplicationRunner {
44
 
44
 
45
	private static final Logger LOGGER = LogManager.getLogger(Application.class);
45
	private static final Logger LOGGER = LogManager.getLogger(Application.class);
46
 
46
 
Line 662... Line 662...
662
			}
662
			}
663
			if (args.containsOption("runme")) {
663
			if (args.containsOption("runme")) {
664
				runOnceTasks.runMe();
664
				runOnceTasks.runMe();
665
 
665
 
666
			}
666
			}
667
			if (args.containsOption("" +
667
			if (args.containsOption("" + "")) {
668
					"")) {
-
 
669
				upgradeOfferService.authenticateUser();
668
				upgradeOfferService.authenticateUser();
670
 
669
 
671
			}
670
			}
672
			if (args.containsOption("mandiiUser")) {
671
			if (args.containsOption("mandiiUser")) {
673
				runOnceTasks.mandiiUser(args.getOptionValues("firstName").get(0),
672
				runOnceTasks.mandiiUser(args.getOptionValues("firstName").get(0),
Line 692... Line 691...
692
				} catch (Exception e) {
691
				} catch (Exception e) {
693
					e.printStackTrace();
692
					e.printStackTrace();
694
				}
693
				}
695
			}
694
			}
696
 
695
 
697
			/*if (args.containsOption("checkRealmeImeiStatus")) {
-
 
698
				try {
696
			/*
699
					standAlone.checkRealmeImeiStatus();
697
			 * if (args.containsOption("checkRealmeImeiStatus")) { try {
700
				} catch (Exception e) {
698
			 * standAlone.checkRealmeImeiStatus(); } catch (Exception e) {
701
					e.printStackTrace();
699
			 * e.printStackTrace(); } }
702
				}
-
 
703
			}*/
700
			 */
704
 
701
 
705
			if (args.containsOption("amazonPurchase")) {
702
			if (args.containsOption("amazonPurchase")) {
706
				try {
703
				try {
707
					runOnceTasks.amazonPurchase();
704
					runOnceTasks.amazonPurchase();
708
				} catch (Exception e) {
705
				} catch (Exception e) {
Line 739... Line 736...
739
 
736
 
740
			}
737
			}
741
 
738
 
742
			if (args.containsOption("processSchemeByIds")) {
739
			if (args.containsOption("processSchemeByIds")) {
743
				List<String> schemeIds = Arrays.asList(args.getOptionValues("ids").get(0).split(","));
740
				List<String> schemeIds = Arrays.asList(args.getOptionValues("ids").get(0).split(","));
744
				List<Integer> schemeIdsInt = schemeIds.stream().map(x -> Integer.parseInt(x)).collect(Collectors.toList());
741
				List<Integer> schemeIdsInt = schemeIds.stream().map(x -> Integer.parseInt(x))
-
 
742
						.collect(Collectors.toList());
745
				runOnceTasks.processSchemeByIds(schemeIdsInt);
743
				runOnceTasks.processSchemeByIds(schemeIdsInt);
746
 
744
 
747
			}
745
			}
748
 
746
 
749
			if (args.containsOption("updateSaholicCISTable")) {
747
			if (args.containsOption("updateSaholicCISTable")) {