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;
|
}
|
}
|