package com.yeshi.fanli.job;
|
|
import com.xxl.job.core.biz.model.ReturnT;
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
import com.yeshi.fanli.service.manger.JobManager;
|
import org.springframework.stereotype.Component;
|
|
import javax.annotation.Resource;
|
|
@Component
|
public class JobDefend {
|
|
@Resource
|
private JobManager jobManager;
|
|
/**
|
* 维护job
|
*
|
* @param param
|
* @return
|
* @throws Exception
|
*/
|
@XxlJob("jobDefend-defend")
|
public ReturnT<String> defend(String param) throws Exception {
|
jobManager.repaire();
|
return ReturnT.SUCCESS;
|
}
|
|
}
|