package org.jeecg.modules.doc.handler;
|
|
import com.xxl.job.core.biz.model.ReturnT;
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
import lombok.extern.slf4j.Slf4j;
|
import org.jeecg.modules.doc.service.IUserStorageFlowService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Component;
|
|
@Component
|
@Slf4j
|
public class JobHandler {
|
|
@Autowired
|
IUserStorageFlowService userStorageFlowService;
|
|
@XxlJob(value = "resetJob")
|
public ReturnT<String> resetJobHandler(String params) {
|
log.info("我是定时任务,我执行了...............................");
|
userStorageFlowService.updateSurplusFlowAll();
|
return ReturnT.SUCCESS;
|
}
|
}
|