Subversion Repositories SmartDukaan

Rev

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

Rev 27630 Rev 27680
Line 116... Line 116...
116
	private ScheduledTasks scheduledTasks;
116
	private ScheduledTasks scheduledTasks;
117
 
117
 
118
	@Autowired
118
	@Autowired
119
	private Reconciliation reconciliation;
119
	private Reconciliation reconciliation;
120
 
120
 
121
	@Autowired
-
 
122
	private SolrService solrService;
-
 
123
 
-
 
124
	@Autowired
-
 
125
	private ToffeeService toffeeService;
-
 
126
 
-
 
127
	@Autowired
-
 
128
	private InsurancePolicyRepository insurancePolicyRepository;
-
 
129
 
-
 
130
	@Override
121
	@Override
131
	public void run(ApplicationArguments args) throws Exception {
122
	public void run(ApplicationArguments args) throws Exception {
132
		LOGGER.info("Called run method");
123
		LOGGER.info("Called run method");
133
		if (args.containsOption("tc")) {
124
		if (args.containsOption("tc")) {
134
			System.out.println("Toffee service called");
125
			System.out.println("Toffee service called");
Line 243... Line 234...
243
		}
234
		}
244
		if (args.containsOption("OutReco1")) {
235
		if (args.containsOption("OutReco1")) {
245
			scheduledTasks.dryRunSchemeOutReco1();
236
			scheduledTasks.dryRunSchemeOutReco1();
246
			System.exit(0);
237
			System.exit(0);
247
		}
238
		}
248
		if (args.containsOption("createTargets")) {
-
 
249
			runOnceTasks.createMonthlyTargets();
-
 
250
			System.exit(0);
-
 
251
		}
-
 
252
		if (args.containsOption("once")) {
239
		if (args.containsOption("once")) {
253
			if (args.containsOption("1")) {
240
			if (args.containsOption("1")) {
254
				if (args.containsOption("test")) {
241
				if (args.containsOption("test")) {
255
					scheduledTasks.sendPartnerInvestmentDetails(args.getOptionValues("email"));
242
					scheduledTasks.sendPartnerInvestmentDetails(args.getOptionValues("email"));
256
				} else {
243
				} else {
Line 265... Line 252...
265
				} else {
252
				} else {
266
					scheduledTasks.sendAgeingReport();
253
					scheduledTasks.sendAgeingReport();
267
				}
254
				}
268
				System.exit(0);
255
				System.exit(0);
269
			}
256
			}
270
			if (args.containsOption("tvs")) {
-
 
271
				scheduledTasks.sendTargetVsSalesReport(null);
-
 
272
				System.exit(0);
-
 
273
			}
-
 
274
			if (args.containsOption("3")) {
257
			if (args.containsOption("3")) {
275
				if (args.getOptionNames().contains("offset")) {
258
				if (args.getOptionNames().contains("offset")) {
276
					int offset = Integer.parseInt(args.getOptionValues("offset").get(0));
259
					int offset = Integer.parseInt(args.getOptionValues("offset").get(0));
277
					if (args.getOptionNames().contains("days")) {
260
					if (args.getOptionNames().contains("days")) {
278
						int durationDays = Integer.parseInt(args.getOptionValues("days").get(0));
261
						int durationDays = Integer.parseInt(args.getOptionValues("days").get(0));