admin
2021-01-25 2ba431be9c12a79783e0f9ef249292b7fa95f2a1
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
28
29
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;
    }
 
}