|  | @@ -0,0 +1,42 @@
 | 
	
		
			
				|  |  | +package com.xunmei.job.task;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +import com.alibaba.fastjson2.JSON;
 | 
	
		
			
				|  |  | +import com.xunmei.common.core.domain.R;
 | 
	
		
			
				|  |  | +import com.xunmei.system.api.RemoteResumptionTaskService;
 | 
	
		
			
				|  |  | +import com.xunmei.system.api.RemoteSafetyCheckService;
 | 
	
		
			
				|  |  | +import lombok.extern.slf4j.Slf4j;
 | 
	
		
			
				|  |  | +import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | +import org.springframework.stereotype.Component;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +import java.util.Date;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +@Slf4j
 | 
	
		
			
				|  |  | +@Component("CoreSafetyCheckTask")
 | 
	
		
			
				|  |  | +public class CoreSafetyCheckTask {
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    RemoteSafetyCheckService checkService;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    public void buildDayTask() {
 | 
	
		
			
				|  |  | +        log.info("开始执行每日检查定时任务,当前任务 当前时间:{}", new Date());
 | 
	
		
			
				|  |  | +        R<Boolean> result = checkService.dayTask();
 | 
	
		
			
				|  |  | +        log.info("执行每日检查定时任务结束....,当前任务 当前时间:{},结果:{}", new Date(), JSON.toJSONString(result));
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    public void buildWeekTask() {
 | 
	
		
			
				|  |  | +        log.info("开始执行每周检查定时任务,当前任务 时间:{}",new Date());
 | 
	
		
			
				|  |  | +        R<Boolean> result = checkService.weekTask();
 | 
	
		
			
				|  |  | +        log.info("执行每周检查定时任务结束,当前任务 时间:{},结果:{}", new Date(), JSON.toJSONString(result));
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    public void buildMonthTask() {
 | 
	
		
			
				|  |  | +        log.info("开始执行每月检查定时任务,当前任务 时间:{}",new Date());
 | 
	
		
			
				|  |  | +        R<Boolean> result = checkService.monthTask();
 | 
	
		
			
				|  |  | +        log.info("执行执行每月检查定时任务结束,当前任务 时间:{},结果:{}", new Date(), JSON.toJSONString(result));
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +//    public void updateTaskStatus(){
 | 
	
		
			
				|  |  | +//        log.info("开始更新检查任务状态 时间:{}",new Date());
 | 
	
		
			
				|  |  | +//        R<Boolean> result = remoteResumptionTaskService.updateTaskStatus();
 | 
	
		
			
				|  |  | +//        log.info("更新检查任务状态结束,当前任务 时间:{},结果:{}", new Date(), JSON.toJSONString(result));
 | 
	
		
			
				|  |  | +//    }
 | 
	
		
			
				|  |  | +}
 |