Subversion Repositories SmartDukaan

Rev

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

Rev 25842 Rev 25927
Line 1... Line 1...
1
package com.smartdukaan.cron;
1
package com.smartdukaan.cron;
2
 
2
 
3
import java.time.LocalDateTime;
-
 
4
import java.util.List;
3
import java.util.List;
5
import java.util.Properties;
4
import java.util.Properties;
6
 
5
 
7
import org.apache.logging.log4j.LogManager;
6
import org.apache.logging.log4j.LogManager;
8
import org.apache.logging.log4j.Logger;
7
import org.apache.logging.log4j.Logger;
Line 106... Line 105...
106
	@Autowired
105
	@Autowired
107
	private Reconciliation reconciliation;
106
	private Reconciliation reconciliation;
108
 
107
 
109
	@Autowired
108
	@Autowired
110
	private SolrService solrService;
109
	private SolrService solrService;
111
	
110
 
112
	@Autowired
111
	@Autowired
113
	private ToffeeService toffeeService;
112
	private ToffeeService toffeeService;
114
	
113
 
115
	@Autowired
114
	@Autowired
116
	private InsurancePolicyRepository insurancePolicyRepository;
115
	private InsurancePolicyRepository insurancePolicyRepository;
117
 
116
 
118
	@Override
117
	@Override
119
	public void run(ApplicationArguments args) throws Exception {
118
	public void run(ApplicationArguments args) throws Exception {
Line 265... Line 264...
265
				scheduledTasks.gst();
264
				scheduledTasks.gst();
266
			}
265
			}
267
			if(args.containsOption("mailDashboardScreenshots")) {
266
			if(args.containsOption("mailDashboardScreenshots")) {
268
				runOnceTasks.mailDashboardScreenshots();
267
				runOnceTasks.mailDashboardScreenshots();
269
			}
268
			}
-
 
269
			if(args.containsOption("notifyLead")) {
-
 
270
				scheduledTasks.notifyLead();
-
 
271
				scheduledTasks.notifyVisits();
-
 
272
			}
270
			System.exit(0);
273
			System.exit(0);
271
		}
274
		}
272
	}
275
	}
273
 
276
 
274
}
277
}
275
278