Subversion Repositories SmartDukaan

Rev

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

Rev 23564 Rev 23568
Line 2... Line 2...
2
 
2
 
3
import java.time.LocalDateTime;
3
import java.time.LocalDateTime;
4
import java.util.List;
4
import java.util.List;
5
 
5
 
6
import javax.servlet.http.HttpServletRequest;
6
import javax.servlet.http.HttpServletRequest;
-
 
7
import org.apache.logging.log4j.LogManager;
-
 
8
import org.apache.logging.log4j.Logger;
-
 
9
 
7
 
10
 
8
import org.slf4j.Logger;
-
 
9
import org.slf4j.LoggerFactory;
-
 
10
import org.springframework.beans.factory.annotation.Autowired;
11
import org.springframework.beans.factory.annotation.Autowired;
11
import org.springframework.beans.factory.annotation.Value;
12
import org.springframework.beans.factory.annotation.Value;
12
import org.springframework.scheduling.annotation.Scheduled;
13
import org.springframework.scheduling.annotation.Scheduled;
13
import org.springframework.stereotype.Controller;
14
import org.springframework.stereotype.Controller;
14
import org.springframework.transaction.annotation.Transactional;
15
import org.springframework.transaction.annotation.Transactional;
Line 46... Line 47...
46
	
47
	
47
	@Value("${prod}")
48
	@Value("${prod}")
48
	private boolean prod;
49
	private boolean prod;
49
	
50
	
50
 
51
 
51
	private static final Logger LOGGER = LoggerFactory.getLogger(CronController.class);
52
	private static final Logger LOGGER =LogManager.getLogger(CronController.class);
52
 
53
 
53
	@Scheduled(cron = "0 45 6 * * *")
54
	@Scheduled(cron = "0 45 6 * * *")
54
	public void executeJob() throws Exception {
55
	public void executeJob() throws Exception {
55
		if(prod) {
56
		if(prod) {
56
			String uri = "/cron/process-schemes";
57
			String uri = "/cron/process-schemes";