yxm
2024-07-09 c7ded88feccf26fb8cd186bdcf0e0184bbc6c44d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package cn.gistack.job.executor.jobhandler;
 
import cn.gistack.sm.sjztmd.feign.ISjztMdClient;
import cn.gistack.sm.sjztods.vo.SkxsQkTjVO;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import com.xxl.job.core.log.XxlJobLogger;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
import java.text.ParseException;
import java.text.SimpleDateFormat;
 
@Component
public class ProjectXxlJob {
    @Autowired
    private ISjztMdClient sjztMdClient;
 
    @XxlJob("projectcheckHaJobHandler")
    public ReturnT<String> projectStuta(String param) throws Exception {
        XxlJobLogger.log("执行时间:"+ new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(DateUtil.now()));
        sjztMdClient.setGetProjectCheckStatus();
        XxlJobLogger.log("完成时间:"+ new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(DateUtil.now()));
        return ReturnT.SUCCESS;
    }
}