Subversion Repositories SmartDukaan

Rev

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

Rev 24827 Rev 24848
Line 94... Line 94...
94
	@Autowired
94
	@Autowired
95
	private RunOnceTasks runOnceTasks;
95
	private RunOnceTasks runOnceTasks;
96
 
96
 
97
	@Autowired
97
	@Autowired
98
	private ScheduledTasks scheduledTasks;
98
	private ScheduledTasks scheduledTasks;
99
	
99
 
100
	@Autowired
100
	@Autowired
101
	private Reconciliation reconciliation;
101
	private Reconciliation reconciliation;
102
 
102
 
103
	@Override
103
	@Override
104
	public void run(ApplicationArguments args) throws Exception {
104
	public void run(ApplicationArguments args) throws Exception {
105
 
-
 
106
		LOGGER.info("Called run method");
105
		LOGGER.info("Called run method");
107
		if (args.containsOption("reco1")) {
106
		if (args.containsOption("reco1")) {
108
			//scheduledTasks.dryRunSchemeReco();
107
			// scheduledTasks.dryRunSchemeReco();
109
			//runOnceTasks.migrateChallansToInvoices();
108
			// runOnceTasks.migrateChallansToInvoices();
110
			reconciliation.dailyReconciliation();
109
			reconciliation.dailyReconciliation();
111
			System.exit(0);
110
			System.exit(0);
112
		}
111
		}
113
		if (args.containsOption("reco2")) {
112
		if (args.containsOption("reco2")) {
114
			scheduledTasks.dryRunOutSchemeReco();
113
			scheduledTasks.dryRunOutSchemeReco();
Line 123... Line 122...
123
				}
122
				}
124
				System.exit(0);
123
				System.exit(0);
125
			}
124
			}
126
			if (args.containsOption("2")) {
125
			if (args.containsOption("2")) {
127
				if (args.containsOption("test")) {
126
				if (args.containsOption("test")) {
128
					String [] emails = new String [args.getOptionValues("email").size()];
127
					String[] emails = new String[args.getOptionValues("email").size()];
129
					scheduledTasks.sendAgeingReport(args.getOptionValues("email").toArray(emails));
128
					scheduledTasks.sendAgeingReport(args.getOptionValues("email").toArray(emails));
130
				} else {
129
				} else {
131
					scheduledTasks.sendAgeingReport();
130
					scheduledTasks.sendAgeingReport();
132
				}
131
				}
133
				System.exit(0);
132
				System.exit(0);
Line 194... Line 193...
194
			System.exit(0);
193
			System.exit(0);
195
		}
194
		}
196
	}
195
	}
197
 
196
 
198
	private void scrapeJD() {
197
	private void scrapeJD() {
-
 
198
 
199
		String jdUrlTemplate = "https://www.justdial.com/Delhi/Mobile-Phone-Dealers/nct-11216691/page-{0}";
199
		String jdUrlTemplate = "https://www.justdial.com/Delhi/Mobile-Phone-Dealers/nct-11216691/page-{0}";
200
		Formatter formatter = new Formatter();
200
		Formatter formatter = new Formatter();
201
 
201
 
202
	}
202
	}
-
 
203
 
203
}
204
}
204
205