Subversion Repositories SmartDukaan

Rev

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

Rev 25837 Rev 25842
Line 118... Line 118...
118
	@Override
118
	@Override
119
	public void run(ApplicationArguments args) throws Exception {
119
	public void run(ApplicationArguments args) throws Exception {
120
		LOGGER.info("Called run method");
120
		LOGGER.info("Called run method");
121
 
121
 
122
		if (args.containsOption("tc")) {
122
		if (args.containsOption("tc")) {
123
			LOGGER.info("Insurance Sum Summary --- {}", 
-
 
124
					insurancePolicyRepository.selectAmountSumGroupByRetailerId(LocalDateTime.now().minusDays(1), null));
-
 
125
			LOGGER.info("Insurance Qty Summary --- {}", 
-
 
126
					insurancePolicyRepository.selectQtyGroupByRetailerId(LocalDateTime.now().minusDays(1), null));
-
 
127
			//System.out.println("Toffee service called");
123
			System.out.println("Toffee service called");
128
			//scheduledTasks.testToffee();
124
			scheduledTasks.testToffee();
129
			System.exit(0);
125
			System.exit(0);
130
		}
126
		}
131
		if(args.containsOption("sr")) {
127
		if(args.containsOption("sr")) {
132
			List<String> schemeIds = args.getOptionValues("schemeId");
128
			List<String> schemeIds = args.getOptionValues("schemeId");
133
			System.out.println(schemeIds);
129
			System.out.println(schemeIds);